diff options
-rw-r--r-- | example/abilities.xml | 1 | ||||
-rw-r--r-- | example/scripts/abilities.lua | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/example/abilities.xml b/example/abilities.xml index 101c802e..4289d6cd 100644 --- a/example/abilities.xml +++ b/example/abilities.xml @@ -7,6 +7,7 @@ rechargeable="true" needed="100" rechargespeed="10" + target="point" /> <ability id="2" diff --git a/example/scripts/abilities.lua b/example/scripts/abilities.lua index 35cc1d25..c5f2161e 100644 --- a/example/scripts/abilities.lua +++ b/example/scripts/abilities.lua @@ -11,7 +11,7 @@ local spell1 = get_ability_info("Magic_Test Spell 1") spell1:on_use(function(user, x, y, abilityId) target = target or user - target:say("Kaaame...Haaame... HAAAAAA!") + target:say("Kaaame...Haaame... HAAAAAA! " .. x .. " " .. y) user:set_ability_mana(abilityId, 0) end) spell1:on_recharged(function(ch) ch:say("Hoooooooo...") end) |