project-meteor-server/data/scripts/effects/divine_regen.lua
yogurt c5ce2ec771 Combat additions
Added formulas for base EXP gain and chain experience
Added basic scripts for most player abilities and effects
Added stat gains for some abilities
Changed status flags
Fixed bug with player death
Fixed bug where auto attacks didnt work when not locked on
Added traits
2018-04-18 16:06:41 -05:00

17 lines
451 B
Lua

--Consistent 85HP/tick normal; 113HP/tick with AF pants
function onGain(owner, effect)
local magnitude = 85
--Need a better way to set magnitude when adding effects
if effect.GetTier() == 2 then
magnitude = 113;
end
effect.SetMagnitude(magnitude);
owner.AddMod(modifiersGlobal.Regen, effect.GetMagnitude());
end
function onLose(owner, effect)
owner.SubtractMod(modifiersGlobal.Regen, effect.GetMagnitude());
end