mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-02 19:42:05 -04:00
New scripts for commands and effects that use the new function signatures and work with the new statuseffectcontainer
10 lines
322 B
Lua
10 lines
322 B
Lua
require("modifiers")
|
|
|
|
--Set magnitude to milliseconds that HF will reduce delay by
|
|
function onGain(owner, effect, actionContainer)
|
|
owner.SubtractMod(modifiersGlobal.Delay, effect.GetMagnitude());
|
|
end;
|
|
|
|
function onLose(owner, effect, actionContainer)
|
|
owner.AddMod(modifiersGlobal.Delay, effect.GetMagnitude());
|
|
end; |