mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
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:
@@ -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;
|
Reference in New Issue
Block a user