mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-20 11:47:48 +00:00
26 lines
771 B
Lua
26 lines
771 B
Lua
![]() |
require("global");
|
||
|
|
||
|
function onSkillPrepare(caster, target, skill)
|
||
|
return 0;
|
||
|
end;
|
||
|
|
||
|
function onSkillStart(caster, target, skill)
|
||
|
return 0;
|
||
|
end;
|
||
|
|
||
|
function onSkillFinish(caster, target, skill, action)
|
||
|
local damage = math.random(100, 200);
|
||
|
|
||
|
-- todo: populate a global script with statuses and modifiers
|
||
|
action.worldMasterTextId = 0x765D;
|
||
|
|
||
|
-- todo: populate a global script with statuses and modifiers
|
||
|
-- magic.HandleAttackMagic(caster, target, spell, action)
|
||
|
-- action.effectId = bit32.bxor(0x8000000, spell.effectAnimation, 15636);
|
||
|
action.effectId = bit32.bxor(0x8000000, skill.effectAnimation, 15636);
|
||
|
|
||
|
if target.hateContainer then
|
||
|
target.hateContainer.UpdateHate(caster, damage);
|
||
|
end;
|
||
|
return damage;
|
||
|
end;
|