diff options
Diffstat (limited to 'example/scripts')
-rw-r--r-- | example/scripts/monster/testmonster.lua | 5 |
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 |