2018-04-18 16:06:41 -05:00
|
|
|
require("modifiers")
|
|
|
|
|
|
|
|
--Increases block rate by 100%
|
2019-05-29 23:05:40 -07:00
|
|
|
function onGain(owner, effect, actionContainer)
|
2018-04-18 16:06:41 -05:00
|
|
|
owner.AddMod(modifiersGlobal.RawBlockRate, 100);
|
|
|
|
end
|
|
|
|
|
2019-05-29 23:05:40 -07:00
|
|
|
function onLose(owner, effect, actionContainer)
|
2018-04-18 16:06:41 -05:00
|
|
|
owner.SubtractMod(modifiersGlobal.RawBlockRate, 100);
|
|
|
|
end
|
|
|
|
|
|
|
|
--Applys Divine Regen to party in range when healed by cure or cura
|
2019-05-29 23:05:40 -07:00
|
|
|
function onHealed(effect, caster, target, skill, action, actionContainer)
|
2018-04-18 16:06:41 -05:00
|
|
|
-- cure cura
|
2019-05-29 23:05:40 -07:00
|
|
|
if (skill.id == 27346 or skill.id == 27347) and (caster != target) then
|
2018-06-25 23:36:18 -05:00
|
|
|
local regenDuration = 30;
|
|
|
|
--Apparently heals for 85 without AF, 113 with. Unsure if these can be improved with stats
|
|
|
|
local magnitude = 85
|
|
|
|
|
|
|
|
--Need a better way to set magnitude when adding effects
|
|
|
|
if effect.GetTier() == 2 then
|
|
|
|
magnitude = 113;
|
|
|
|
end
|
|
|
|
|
2018-04-18 16:06:41 -05:00
|
|
|
--For each party member in range, add divine regen
|
2019-05-29 23:05:40 -07:00
|
|
|
for chara in target.GetPartyMembersInRange(8) do
|
|
|
|
chara.statusEffects.AddStatusEffect(223264, effect.GetTier(), magnitude, regenDuration, actionContainer);
|
2018-04-18 16:06:41 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end;
|