Bugfix: water units can't conquer cities

This commit is contained in:
Yair Morgenstern
2018-10-22 20:04:32 +03:00
parent 9c36ae0c6b
commit 7537f59bda

View File

@ -59,7 +59,8 @@ class Battle(val gameInfo:GameInfo) {
if(defender.isDefeated()
&& defender.getUnitType() == UnitType.City
&& attacker.isMelee()){
&& attacker.isMelee()
&& attacker.getUnitType().isLandUnit()){
conquerCity((defender as CityCombatant).city, attacker)
}