mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-02 19:42:05 -04:00
Cleaned up unneeded requires in some scripts Fixed Second Wind Added new effect scripts Added bard song scripts that mostly work
13 lines
426 B
Lua
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; |