mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-08 21:44:35 +02:00
Health updating fix, temp r0 fix
This commit is contained in:
parent
205d3619d6
commit
837c7a9223
11 changed files with 33 additions and 50 deletions
|
@ -1,27 +0,0 @@
|
|||
require("global")
|
||||
messageId = MESSAGE_TYPE_SYSTEM_ERROR;
|
||||
sender = "regen";
|
||||
|
||||
function onGain(target, effect)
|
||||
messageId = MESSAGE_TYPE_SYSTEM_ERROR;
|
||||
sender = "regen";
|
||||
|
||||
end;
|
||||
|
||||
function onTick(target, effect)
|
||||
messageId = MESSAGE_TYPE_SYSTEM_ERROR;
|
||||
sender = "regen";
|
||||
|
||||
-- todo: actual regen effect thing
|
||||
local ability = GetWorldManager().GetBattleCommand(27346);
|
||||
local anim = bit32.bxor(bit32.lshift(ability.animationType, 24), bit32.lshift(tonumber(1), 12) , 101);
|
||||
local addHp = effect.GetMagnitude();
|
||||
|
||||
target.AddHP(addHp);
|
||||
-- target.SendBattleActionX01Packet(anim, 101, 0, 0, addHp);
|
||||
end;
|
||||
|
||||
function onLose(target, effect)
|
||||
messageId = MESSAGE_TYPE_SYSTEM_ERROR;
|
||||
sender = "regen";
|
||||
end;
|
Loading…
Add table
Add a link
Reference in a new issue