mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-31 18:04:55 +07:00
Captured Khans now automate properly
This commit is contained in:
parent
d9d6f4eeb8
commit
3402065e3c
@ -447,7 +447,8 @@ class NextTurnAutomation{
|
||||
when {
|
||||
unit.type.isRanged() -> rangedUnits.add(unit)
|
||||
unit.type.isMelee() -> meleeUnits.add(unit)
|
||||
unit.name == civInfo.getEquivalentUnit(Constants.greatGeneral).name -> generals.add(unit) //generals move after military units
|
||||
unit.name == Constants.greatGeneral || unit.baseUnit.replaces == Constants.greatGeneral
|
||||
-> generals.add(unit) //generals move after military units
|
||||
else -> civilianUnits.add(unit)
|
||||
}
|
||||
}
|
||||
|
@ -44,7 +44,7 @@ class UnitAutomation {
|
||||
return SpecificUnitAutomation().automateWorkBoats(unit)
|
||||
}
|
||||
|
||||
if (unit.name == unit.civInfo.getEquivalentUnit(Constants.greatGeneral).name)
|
||||
if (unit.name == Constants.greatGeneral || unit.baseUnit.replaces == Constants.greatGeneral)
|
||||
return SpecificUnitAutomation().automateGreatGeneral(unit)
|
||||
|
||||
if (unit.type == UnitType.Fighter)
|
||||
|
Loading…
Reference in New Issue
Block a user