1
Fork 0
mirror of https://bitbucket.org/Ioncannon/project-meteor-server.git synced 2025-04-21 12:17:46 +00:00
project-meteor-server/data/scripts/effects/regen.lua
Tahir Akhlaq 9024f3fad6 cleaned up magicstate and weaponskillstate
- todo: fix IsFacing
- added thunder spell (todo: figure out why battleactionx10 crashes client on sending shit)
2017-08-26 04:08:26 +01:00

27 lines
No EOL
727 B
Lua

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().GetAbility(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;