Fix AI nuke radius. (#2826)

This commit is contained in:
Duan Tao 2020-07-10 14:36:39 +08:00 committed by GitHub
parent 04939feb3c
commit 13a26fa434
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,6 +29,10 @@ object Battle {
attacker.unit.useMovementPoints(1f)
}
}
if (attacker.getUnitType() == UnitType.Missile) {
return nuke(attacker, attackableTile.tileToAttack)
}
attack(attacker, getMapCombatantOfTile(attackableTile.tileToAttack)!!)
}