summaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorErik Schilling <ablu.erikschilling@googlemail.com>2012-06-10 15:11:11 +0200
committerErik Schilling <ablu.erikschilling@googlemail.com>2012-07-07 21:56:14 +0200
commit68158fffc6d2b28856e7b8f9f11e26131c1f3761 (patch)
treeaf177a1bc0b3b0c1df911f3c80d5c67c2ff51cd6 /example
parent4cf22065e9f2b24eb481959aa65667ef1bd0724d (diff)
downloadmanaserv-68158fffc6d2b28856e7b8f9f11e26131c1f3761.tar.gz
manaserv-68158fffc6d2b28856e7b8f9f11e26131c1f3761.tar.bz2
manaserv-68158fffc6d2b28856e7b8f9f11e26131c1f3761.tar.xz
manaserv-68158fffc6d2b28856e7b8f9f11e26131c1f3761.zip
Added script binds for getting attack information
New binds: - Damage: - id - skill - base - delta - cth - element - type - truestrike - range - Attack: - priority - cooldown - warmup - global_cooldown - damage - on_attack - MonsterClass: - attacks - ItemClass: - attacks
Diffstat (limited to 'example')
-rw-r--r--example/scripts/monster/testmonster.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/example/scripts/monster/testmonster.lua b/example/scripts/monster/testmonster.lua
index 6ef11faa..86d1592f 100644
--- a/example/scripts/monster/testmonster.lua
+++ b/example/scripts/monster/testmonster.lua
@@ -26,4 +26,7 @@ end
local maggot = get_monster_class("maggot")
maggot:on_update(update)
-maggot:on("strike", strike)
+local attacks = maggot:attacks();
+for i, attack in ipairs(attacks) do
+ attack:on_attack(strike)
+end