diff options
Diffstat (limited to 'src/game-server/monster.cpp')
-rw-r--r-- | src/game-server/monster.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game-server/monster.cpp b/src/game-server/monster.cpp index 70e7ab1f..a5a5f2ec 100644 --- a/src/game-server/monster.cpp +++ b/src/game-server/monster.cpp @@ -58,7 +58,7 @@ struct MonsterTargetEventDispatch: EventDispatch static MonsterTargetEventDispatch monsterTargetEventDispatch; Monster::Monster(MonsterClass *specy): - Being(OBJECT_MONSTER, 65535), + Being(OBJECT_MONSTER), mSpecy(specy), mCountDown(0), mTargetListener(&monsterTargetEventDispatch), @@ -168,7 +168,7 @@ void Monster::update() // Iterate through objects nearby int aroundArea = Configuration::getValue("visualRange", 320); - for (MovingObjectIterator i(getMap()->getAroundCharacterIterator(this, aroundArea)); i; ++i) + for (BeingIterator i(getMap()->getAroundBeingIterator(this, aroundArea)); i; ++i) { // We only want to attack player characters if ((*i)->getType() != OBJECT_CHARACTER) continue; @@ -319,7 +319,7 @@ void Monster::forgetTarget(Thing *t) } } -int Monster::damage(Object *source, Damage const &damage) +int Monster::damage(Actor *source, Damage const &damage) { int HPLoss = Being::damage(source, damage); if (HPLoss && source && source->getType() == OBJECT_CHARACTER) |