From 68158fffc6d2b28856e7b8f9f11e26131c1f3761 Mon Sep 17 00:00:00 2001 From: Erik Schilling Date: Sun, 10 Jun 2012 15:11:11 +0200 Subject: 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 --- example/scripts/monster/testmonster.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'example') 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 -- cgit v1.2.3-60-g2f50