summaryrefslogtreecommitdiff
path: root/src/monster.cpp
diff options
context:
space:
mode:
authorChuck Miller <shadowmil@gmail.com>2009-06-23 20:30:29 -0400
committerChuck Miller <shadowmil@gmail.com>2009-06-23 20:30:29 -0400
commit4f3a8268f69650e431cb0496d9903e7a02b609f0 (patch)
tree6104a34c194df218f4e929e0ebbc2e949b1e6487 /src/monster.cpp
parent4d4b94192c1883b29eed4f3389422a0b0f930bef (diff)
downloadmana-client-4f3a8268f69650e431cb0496d9903e7a02b609f0.tar.gz
mana-client-4f3a8268f69650e431cb0496d9903e7a02b609f0.tar.bz2
mana-client-4f3a8268f69650e431cb0496d9903e7a02b609f0.tar.xz
mana-client-4f3a8268f69650e431cb0496d9903e7a02b609f0.zip
Made so monster particle effects show up on eA
I also removed Being::handleAttack() and Monster::handleAttack() for TMWserv since they are not used
Diffstat (limited to 'src/monster.cpp')
-rw-r--r--src/monster.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/monster.cpp b/src/monster.cpp
index 92e1f84a..3192abf5 100644
--- a/src/monster.cpp
+++ b/src/monster.cpp
@@ -156,22 +156,6 @@ void Monster::setAction(Action action, int attackType)
}
}
-#ifdef TMWSERV_SUPPORT
-
-void Monster::handleAttack()
-{
- Being::handleAttack();
-
- const MonsterInfo &mi = getInfo();
-
- // TODO: It's not possible to determine hit or miss here, so this stuff
- // probably needs to be moved somewhere else. We may lose synchronization
- // between attack animation and the sound, unless we adapt the protocol...
- sound.playSfx(mi.getSound(MONSTER_EVENT_HIT));
-}
-
-#else
-
void Monster::handleAttack(Being *victim, int damage, AttackType type)
{
Being::handleAttack(victim, damage, type);
@@ -181,8 +165,6 @@ void Monster::handleAttack(Being *victim, int damage, AttackType type)
MONSTER_EVENT_HIT : MONSTER_EVENT_MISS));
}
-#endif
-
void Monster::takeDamage(Being *attacker, int amount, AttackType type)
{
if (amount > 0)