2017-08-25 03:52:43 +01:00
|
|
|
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";
|
|
|
|
|
2017-08-26 04:08:26 +01:00
|
|
|
-- todo: actual regen effect thing
|
2017-08-28 23:21:21 -04:00
|
|
|
local ability = GetWorldManager().GetBattleCommand(27346);
|
2017-08-25 03:52:43 +01:00
|
|
|
local anim = bit32.bxor(bit32.lshift(ability.animationType, 24), bit32.lshift(tonumber(1), 12) , 101);
|
|
|
|
local addHp = effect.GetMagnitude();
|
|
|
|
|
|
|
|
target.AddHP(addHp);
|
2017-08-26 04:08:26 +01:00
|
|
|
-- target.SendBattleActionX01Packet(anim, 101, 0, 0, addHp);
|
2017-08-25 03:52:43 +01:00
|
|
|
end;
|
|
|
|
|
|
|
|
function onLose(target, effect)
|
|
|
|
messageId = MESSAGE_TYPE_SYSTEM_ERROR;
|
|
|
|
sender = "regen";
|
|
|
|
end;
|