fix for "The last wave"-problem in amazon(light) scenario

This commit is contained in:
Titus Tscharntke 2012-03-31 20:02:49 +00:00
parent 2f885406e0
commit 0c16882d0a
1 changed files with 1 additions and 1 deletions

View File

@ -2063,7 +2063,7 @@ void UnitUpdater::damage(Unit *attacker, const AttackSkillType* ast, Unit *attac
//damage the unit
if(attacked->decHp(static_cast<int>(damage))) {
world->getStats()->kill(attacker->getFactionIndex(), attacked->getFactionIndex(), attacker->getTeam() != attacked->getTeam(),attacked->getType()->getCountUnitDeathInStats(),attacked->getType()->getCountUnitKillInStats());
if(attacked->getType()->getCountKillForUnitUpgrade()){
if(attacked->getType()->getCountKillForUnitUpgrade() == true){
attacker->incKills(attacked->getTeam());
}