diff options
author | Erik Schilling <ablu.erikschilling@googlemail.com> | 2012-06-10 15:11:11 +0200 |
---|---|---|
committer | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-01-08 16:58:57 +0100 |
commit | cf69b4b007e602576208d1beff9852c8bf1acbe9 (patch) | |
tree | c864c21097b0e462ece0b570bf38f5a0660d5739 /example/scripts/monster/testmonster.lua | |
parent | 6f287f239e9d94707735b183d6c6b89eea9fef20 (diff) | |
download | manaserv-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.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 |