summaryrefslogtreecommitdiffstats
path: root/example
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-05-08 14:02:50 +0200
commitc988f165e83a4fe21dd3d26bc89a9d618b329928 (patch)
tree5a8568bb1fda183fa94cfff034c094a77d4e613f /example
parentefc1bde7fb961c2c5f22c904912cd1e7055815d9 (diff)
downloadmanaserv-c988f165e83a4fe21dd3d26bc89a9d618b329928.tar.gz
manaserv-c988f165e83a4fe21dd3d26bc89a9d618b329928.tar.xz
manaserv-c988f165e83a4fe21dd3d26bc89a9d618b329928.zip
[Abilities] Turned special 1 into a point target for easier testing
Diffstat (limited to 'example')
-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 101c802..4289d6c 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 35cc1d2..c5f2161 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)