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,13 +1,10 @@
require("modifiers")
--will this break with things like slow?
--Set magnitude to milliseconds that HF will reduce delay by
function onGain(target, effect)
local currDelay = target.GetMod(modifiersGlobal.AttackDelay);
target.SetMod(modifiersGlobal.AttackDelay), 0.66 * currDelay);
target.SubtractMod(modifiersGlobal.AttackDelay), effect.GetMagnitude());
end;
function onLose(target, effect)
local currDelay = target.GetMod(modifiersGlobal.AttackDelay);
target.SetMod(modifiersGlobal.AttackDelay), 1.50 * currDelay);
end;
target.AddMod(modifiersGlobal.AttackDelay), effect.GetMagnitude());
end;