Animations now show escort units (#11954)

This commit is contained in:
Oskar Niesen 2024-07-14 01:22:54 -05:00 committed by GitHub
parent a2574c2831
commit 6a8718746d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -322,6 +322,9 @@ class WorldMapHolder(
worldScreen.shouldUpdate = true
animateMovement(previousTile, selectedUnit, tileToMoveTo, pathToTile)
if (selectedUnit.isEscorting()) {
animateMovement(previousTile, selectedUnit.getOtherEscortUnit()!!, tileToMoveTo, pathToTile)
}
if (selectedUnits.size > 1) { // We have more tiles to move
moveUnitToTargetTile(selectedUnits.subList(1, selectedUnits.size), targetTile)