summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Schilling <ablu.erikschilling@googlemail.com>2013-04-15 19:03:08 +0200
committerErik Schilling <ablu.erikschilling@googlemail.com>2013-08-26 22:56:46 +0200
commitaaafcbbad4bca55f1cb27fb91d103ebcd64e666e (patch)
tree19480cd266e8ca111c9b905081ca6e6b32e5f4c7
parente3fcc1a47db312933a0f5b7e725c5779a1a45722 (diff)
downloadmanaserv-aaafcbbad4bca55f1cb27fb91d103ebcd64e666e.tar.gz
manaserv-aaafcbbad4bca55f1cb27fb91d103ebcd64e666e.tar.bz2
manaserv-aaafcbbad4bca55f1cb27fb91d103ebcd64e666e.tar.xz
manaserv-aaafcbbad4bca55f1cb27fb91d103ebcd64e666e.zip
[Abilities] Turned special 1 into a point target for easier testing
-rw-r--r--example/abilities.xml1
-rw-r--r--example/scripts/abilities.lua2
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)