summaryrefslogtreecommitdiff
path: root/example/scripts/monster/testmonster.lua
diff options
context:
space:
mode:
authorErik Schilling <ablu.erikschilling@googlemail.com>2013-04-27 21:09:23 +0200
committerErik Schilling <ablu.erikschilling@googlemail.com>2013-08-26 22:56:46 +0200
commitf31277b327df701361391b1d4b8bd6f89f4e3109 (patch)
tree0fd2b85c13cb11654ff6cd027e0be7ff6b61c2d6 /example/scripts/monster/testmonster.lua
parent960d40d819afb65387469591bdb02e6819d72294 (diff)
downloadmanaserv-f31277b327df701361391b1d4b8bd6f89f4e3109.tar.gz
manaserv-f31277b327df701361391b1d4b8bd6f89f4e3109.tar.bz2
manaserv-f31277b327df701361391b1d4b8bd6f89f4e3109.tar.xz
manaserv-f31277b327df701361391b1d4b8bd6f89f4e3109.zip
[Abilities] Removed the old autoattack system
As a side effect i had to remove the monster attack AI for now. I will readd this as next thing.
Diffstat (limited to 'example/scripts/monster/testmonster.lua')
-rw-r--r--example/scripts/monster/testmonster.lua14
1 files changed, 0 insertions, 14 deletions
diff --git a/example/scripts/monster/testmonster.lua b/example/scripts/monster/testmonster.lua
index 21b6a7b2..42cf1d2d 100644
--- a/example/scripts/monster/testmonster.lua
+++ b/example/scripts/monster/testmonster.lua
@@ -14,19 +14,5 @@ local function update(mob)
end
end
-local function strike(mob, victim, hit)
- if hit > 0 then
- mob:say("Take this! "..hit.." damage!")
- victim:say("Oh Noez!")
- else
- mob:say("Oh no, my attack missed!")
- victim:say("Whew...")
- end
-end
-
local maggot = get_monster_class("maggot")
maggot:on_update(update)
-local attacks = maggot:attacks();
-for i, attack in ipairs(attacks) do
- attack:on_attack(strike)
-end