1
Fork 0
mirror of https://bitbucket.org/Ioncannon/project-meteor-server.git synced 2025-04-20 11:47:48 +00:00
project-meteor-server/Data/scripts/effects/hp_penalty.lua

11 lines
250 B
Lua
Raw Normal View History

require("modifiers")
function onGain(owner, effect, actionContainer)
local newMaxHP = owner.GetMaxHP() * 0.75;
owner.SetMaxHP(newMaxHP);
end;
function onLose(owner, effect, actionContainer)
owner.SetMaxHP(owner.GetMaxHP() / 0.75);
end;