project-meteor-server/data/scripts/effects/stoneskin.lua
yogurt c442dc9ecd Script fixes and new effects.
Cleaned up unneeded requires in some scripts
Fixed Second Wind
Added new effect scripts
Added bard song scripts that mostly work
2018-06-25 23:36:18 -05:00

13 lines
426 B
Lua

require("modifiers")
function onGain(owner, effect)
owner.AddMod(modifiersGlobal.Stoneskin, effect.GetMagnitude());
end
--Using extra for how much mitigation stoneskin has
function onPostAction(caster, target, effect, skill, action, actionContainer)
if (owner.GetMod(modifiersGlobal.Stoneskin) <= 0) then
actionContainer.AddAction(owner.statusEffects.RemoveStatusEffectForBattleAction(effect));
end
end;