summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Sehmisch <crush@themanaworld.org>2009-12-05 19:33:49 +0100
committerPhilipp Sehmisch <crush@themanaworld.org>2009-12-05 19:33:49 +0100
commit50916cc0b70adc14e3ae8fedb04c0ed0f9d8d85e (patch)
tree268b0a9e8b902eb9f5619c9a5a92f3a848a48aad
parentef1c2e60facf32f9f55a7bf8dcfb59f7654f18cc (diff)
downloadmanaserv-50916cc0b70adc14e3ae8fedb04c0ed0f9d8d85e.tar.gz
manaserv-50916cc0b70adc14e3ae8fedb04c0ed0f9d8d85e.tar.bz2
manaserv-50916cc0b70adc14e3ae8fedb04c0ed0f9d8d85e.tar.xz
manaserv-50916cc0b70adc14e3ae8fedb04c0ed0f9d8d85e.zip
Fixed a bug which prevented monsters from attacking
-rw-r--r--src/game-server/monster.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/game-server/monster.cpp b/src/game-server/monster.cpp
index fe74ea6a..c05fd418 100644
--- a/src/game-server/monster.cpp
+++ b/src/game-server/monster.cpp
@@ -271,7 +271,6 @@ void Monster::update()
setDirection(bestAttackDirection);
//perform a random attack based on priority
mCurrentAttack = workingAttacks.upper_bound(rand()%prioritySum)->second;
- setTimerSoft(T_B_ATTACK_TIME, mCurrentAttack->preDelay + mCurrentAttack->aftDelay);
setAction(ATTACK);
raiseUpdateFlags(UPDATEFLAG_ATTACK);
}