mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-13 09:18:43 +07:00
Fixed Indirect Fire promotion
This commit is contained in:
@ -496,8 +496,8 @@
|
||||
afterPeace:"Congratulations on your victory! I hope that peace between us will last forever!"
|
||||
tradeRequest:"Let us do business! Would you be interested?"
|
||||
|
||||
outerColor:[18,84,30],
|
||||
innerColor:[245,248,185],
|
||||
outerColor:[245,248,185],
|
||||
innerColor:[18,84,30],
|
||||
uniqueName:"Barbary Corsairs"
|
||||
unique:"Pay only one third the usual cost for naval unit maintenance. Melee naval units have a 1/3 chance to capture defeated naval units.",
|
||||
cities:["Istanbul","Edirne","Ankara","Bursa","Konya","Samsun","Gaziantep","Diyabakir","Izmir","Kayseri","Malatya",
|
||||
|
@ -221,7 +221,8 @@ class UnitAutomation{
|
||||
|
||||
for(reachableTile in tilesToAttackFrom){ // tiles we'll still have energy after we reach there
|
||||
val tilesInAttackRange =
|
||||
if (unit.hasUnique("Indirect Fire") || unit.type.isAirUnit()) reachableTile.getTilesInDistance(rangeOfAttack)
|
||||
if (unit.hasUnique("Ranged attacks may be performed over obstacles") || unit.type.isAirUnit())
|
||||
reachableTile.getTilesInDistance(rangeOfAttack)
|
||||
else reachableTile.getViewableTiles(rangeOfAttack, unit.type.isWaterUnit())
|
||||
|
||||
attackableTiles += tilesInAttackRange.asSequence().filter { it in tilesWithEnemies }
|
||||
|
Reference in New Issue
Block a user