From 31232e3a5702a7618fe40dc74f5d987a662cb081 Mon Sep 17 00:00:00 2001 From: Guillaume Melquiond Date: Sun, 19 Aug 2007 08:05:45 +0000 Subject: Added support for protective equipment. --- src/game-server/monster.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/game-server/monster.cpp') 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 = -- cgit v1.2.3-60-g2f50