mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-22 20:57:47 +00:00

Cleaned up unneeded requires in some scripts Fixed Second Wind Added new effect scripts Added bard song scripts that mostly work
13 lines
No EOL
426 B
Lua
13 lines
No EOL
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; |