project-meteor-server/data/scripts/effects/foresight.lua
Yogurt 00017468cc New scripts
New scripts for commands and effects that use the new function
signatures and work with the new statuseffectcontainer
2019-05-29 23:05:40 -07:00

15 lines
514 B
Lua

require("modifiers")
function onGain(owner, effect, actionContainer)
--Parry is .1% per , Random guess but gonna say it gives 20% worth of parry.
owner.AddMod(modifiersGlobal.Parry, 200);
end;
function onParry(effect, attacker, defender, skill, action, actionContainer)
--Foresight is lost after parrying
defender.statusEffects.RemoveStatusEffect(effect, actionContainer, 30331, false);
end;
function onLose(owner, effect, actionContainer)
owner.SubtractMod(modifiersGlobal.Parry, 200);
end;