mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-20 19:57:46 +00:00

- moved spells to scripts/commands/ - added aoe range field to battle_commands.sql - changed AttackState to use character's onAttack
21 lines
No EOL
560 B
Lua
21 lines
No EOL
560 B
Lua
function onMagicPrepare(caster, target, spell)
|
|
return 0;
|
|
end;
|
|
|
|
function onMagicStart(caster, target, spell)
|
|
return 0;
|
|
end;
|
|
|
|
function onMagicFinish(caster, target, spell, action)
|
|
local damage = math.random(10, 100);
|
|
print("fuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuckkk")
|
|
|
|
action.param = damage;
|
|
action.effectId = bit32.bxor(0x8000000, spell.effectAnimation, 15636);
|
|
|
|
if target.hateContainer then
|
|
target.hateContainer.AddBaseHate(caster);
|
|
target.hateContainer.UpdateHate(caster, damage);
|
|
end;
|
|
return damage;
|
|
end; |