1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00

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

This commit is contained in:
DjWarmonger 2012-03-06 08:39:05 +00:00
parent bdd71b4f38
commit 3e351f029c

View File

@ -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
}
}