mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-14 01:39:40 +07:00
Captured Khans now automate properly
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user