summaryrefslogtreecommitdiff
path: root/example/scripts/monster/testmonster.lua
diff options
context:
space:
mode:
authorErik Schilling <ablu.erikschilling@googlemail.com>2012-06-10 15:11:11 +0200
committerErik Schilling <ablu.erikschilling@googlemail.com>2013-01-08 16:58:57 +0100
commitcf69b4b007e602576208d1beff9852c8bf1acbe9 (patch)
treec864c21097b0e462ece0b570bf38f5a0660d5739 /example/scripts/monster/testmonster.lua
parent6f287f239e9d94707735b183d6c6b89eea9fef20 (diff)
downloadmanaserv-cf69b4b007e602576208d1beff9852c8bf1acbe9.tar.gz
manaserv-cf69b4b007e602576208d1beff9852c8bf1acbe9.tar.bz2
manaserv-cf69b4b007e602576208d1beff9852c8bf1acbe9.tar.xz
manaserv-cf69b4b007e602576208d1beff9852c8bf1acbe9.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/scripts/monster/testmonster.lua')
-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