mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-11 06:54:43 +02:00
Fix hiteffect.lua to not use bor since we can't reference other members
of the same table Change hp_penalty onGain and onLose to use the new function signature
This commit is contained in:
parent
4e054ca947
commit
afe1e59889
3 changed files with 32 additions and 30 deletions
|
@ -1,11 +1,11 @@
|
|||
require("modifiers")
|
||||
|
||||
function onGain(target, effect)
|
||||
local newMaxHP = target.GetMaxHP() * 0.75;
|
||||
function onGain(owner, effect, actionContainer)
|
||||
local newMaxHP = owner.GetMaxHP() * 0.75;
|
||||
|
||||
target.SetMaxHP(newMaxHP);
|
||||
owner.SetMaxHP(newMaxHP);
|
||||
end;
|
||||
|
||||
function onLose(target, effect)
|
||||
target.SetMaxHP(target.GetMaxHP() / 0.75);
|
||||
function onLose(owner, effect, actionContainer)
|
||||
owner.SetMaxHP(owner.GetMaxHP() / 0.75);
|
||||
end;
|
Loading…
Add table
Add a link
Reference in a new issue