mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-08 21:44:35 +02:00
add ion's fix for BattleActionX10Packet crashing client
- add blizzara spell lua
This commit is contained in:
parent
9024f3fad6
commit
1ae15df64c
9 changed files with 33 additions and 27 deletions
19
data/scripts/spells/blizzara.lua
Normal file
19
data/scripts/spells/blizzara.lua
Normal file
|
@ -0,0 +1,19 @@
|
|||
function onSpellPrepare(caster, target, spell)
|
||||
return 0;
|
||||
end;
|
||||
|
||||
function onSpellStart(caster, target, spell)
|
||||
return 0;
|
||||
end;
|
||||
|
||||
function onSpellFinish(caster, target, spell, action)
|
||||
local damage = math.random(10, 100);
|
||||
print("fuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuckkk")
|
||||
|
||||
action.param = damage;
|
||||
if target.hateContainer then
|
||||
target.hateContainer.AddBaseHate(caster);
|
||||
target.hateContainer.UpdateHate(caster, damage);
|
||||
end;
|
||||
return damage;
|
||||
end;
|
Loading…
Add table
Add a link
Reference in a new issue