Script fixes and new effects.

Cleaned up unneeded requires in some scripts
Fixed Second Wind
Added new effect scripts
Added bard song scripts that mostly work
This commit is contained in:
yogurt 2018-06-25 23:36:18 -05:00
parent ace4dfe58f
commit c442dc9ecd
72 changed files with 524 additions and 171 deletions

View file

@ -1,5 +1,4 @@
require("modifiers")
require("hiteffect")
--Increases block rate by 100%
function onGain(owner, effect)
@ -11,12 +10,21 @@ function onLose(owner, effect)
end
--Applys Divine Regen to party in range when healed by cure or cura
function onBlock(caster, target, effect, skill, action, actionContainer)
function onHealed(caster, target, effect, skill, action, actionContainer)
-- cure cura
if (skill.id == 27346 or skill.id == 27347) and (caster != owner) then
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
--For each party member in range, add divine regen
for chara in owner.GetPartyMembersInRange(8) do
local addAction = chara.statusEffects.AddStatusForBattleAction(223264, 2);
local addAction = chara.statusEffects.AddStatusForBattleAction(223264, effect.GetTier(), magnitude, regenDuration);
actionContainer.AddAction(addAction);
end
end