diff options
Diffstat (limited to 'src/game-server/monster.cpp')
-rw-r--r-- | src/game-server/monster.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/game-server/monster.cpp b/src/game-server/monster.cpp index 45b0fbbe..e859c9f9 100644 --- a/src/game-server/monster.cpp +++ b/src/game-server/monster.cpp @@ -96,6 +96,8 @@ void Monster::perform() void Monster::update() { + Being::update(); + // If dead do nothing but rot if (mAction == DEAD) { @@ -235,8 +237,7 @@ void Monster::died(Being *being) int Monster::damage(Object *source, Damage const &damage) { int HPLoss = Being::damage(source, damage); - if (getModifiedAttribute(BASE_ATTR_HP) && HPLoss && source && - source->getType() == OBJECT_CHARACTER) + if (HPLoss && source && source->getType() == OBJECT_CHARACTER) { Being *s = static_cast< Being * >(source); std::pair< std::map< Being *, int >::iterator, bool > ib = |