2018-04-18 16:06:41 -05:00
|
|
|
require("modifiers")
|
|
|
|
|
2019-05-29 23:05:40 -07:00
|
|
|
function onGain(owner, effect, actionContainer)
|
2018-04-18 16:06:41 -05:00
|
|
|
--Parry is .1% per , Random guess but gonna say it gives 20% worth of parry.
|
2019-05-29 23:05:40 -07:00
|
|
|
owner.AddMod(modifiersGlobal.Parry, 200);
|
2018-04-18 16:06:41 -05:00
|
|
|
end;
|
|
|
|
|
2019-05-29 23:05:40 -07:00
|
|
|
function onParry(effect, attacker, defender, skill, action, actionContainer)
|
2018-04-18 16:06:41 -05:00
|
|
|
--Foresight is lost after parrying
|
2019-05-29 23:05:40 -07:00
|
|
|
defender.statusEffects.RemoveStatusEffect(effect, actionContainer, 30331, false);
|
2018-04-18 16:06:41 -05:00
|
|
|
end;
|
|
|
|
|
2019-05-29 23:05:40 -07:00
|
|
|
function onLose(owner, effect, actionContainer)
|
|
|
|
owner.SubtractMod(modifiersGlobal.Parry, 200);
|
2018-04-18 16:06:41 -05:00
|
|
|
end;
|