mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-21 09:47:33 +07:00
Merge pull request #377 from ninjatao/indirect_fire
fix "Indirect Fire" typo.
This commit is contained in:
commit
39b09f16b2
@ -152,7 +152,7 @@ class UnitAutomation{
|
||||
.filter { unit.canMoveTo(it) || it==unit.getTile() }
|
||||
|
||||
for(reachableTile in tilesToAttackFrom){ // tiles we'll still have energy after we reach there
|
||||
val tilesInAttackRange = if (unit.hasUnique("Indirect fire")) reachableTile.getTilesInDistance(rangeOfAttack)
|
||||
val tilesInAttackRange = if (unit.hasUnique("Indirect Fire")) reachableTile.getTilesInDistance(rangeOfAttack)
|
||||
else reachableTile.getViewableTiles(rangeOfAttack)
|
||||
attackableTiles += tilesInAttackRange.asSequence().filter { it in tilesWithEnemies }
|
||||
.map { AttackableTile(reachableTile,it) }
|
||||
|
Loading…
Reference in New Issue
Block a user