Fix city defeated info.

This commit is contained in:
Duan Tao 2019-01-23 15:27:37 +08:00
parent baed1e50cd
commit a03482477d

View File

@ -46,7 +46,7 @@ class Battle(val gameInfo:GameInfo) {
if(attacker.getCivilization()!=defender.getCivilization()) { // If what happened was that a civilian unit was captures, that's dealt with in the CaptureCilvilianUnit function
val whatHappenedString =
if (attacker.isDefeated()) " {was destroyed while attacking}"
if (attacker !is CityCombatant && attacker.isDefeated()) " {was destroyed while attacking}"
else " has " + (if (defender.isDefeated()) "destroyed" else "attacked")
val attackerString =
if (attacker.getUnitType() == UnitType.City) "Enemy city [" + attacker.getName() + "]"