mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-21 12:17:46 +00:00

New scripts for commands and effects that use the new function signatures and work with the new statuseffectcontainer
9 lines
264 B
Lua
9 lines
264 B
Lua
require("modifiers")
|
|
|
|
function onGain(owner, effect, actionContainer)
|
|
owner.SubtractMod(modifiersGlobal.Defense, effect.GetMagnitude());
|
|
end
|
|
|
|
function onLose(owner, effect, actionContainer)
|
|
owner.AddMod(modifiersGlobal.Defense, effect.GetMagnitude());
|
|
end
|