Browse Source

Fixed creeps regenerating casualties from won battle at the start of new week.

DjWarmonger 13 years ago
parent
commit
3e351f029c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      lib/CObjectHandler.cpp

+ 2 - 0
lib/CObjectHandler.cpp

@@ -2997,6 +2997,8 @@ void CGCreature::endBattle( BattleResult *result ) const
 			else
 				cb->moveStack (StackLocation(this, i->first), StackLocation(this, slot), i->second->count);
 		}
+
+		cb->setObjProperty(id, ObjProperty::MONSTER_POWER, stacks.begin()->second->count * 1000); //remember casualties
 	}
 }