Players can't move spies when it is not their turn (#11056)

* Players can't move spies when it is not their turn

* Inversed the statement to have the proper behavior.

* Update core/src/com/unciv/ui/screens/overviewscreen/EspionageOverviewScreen.kt

---------

Co-authored-by: Yair Morgenstern <yairm210@hotmail.com>
This commit is contained in:
Oskar Niesen 2024-02-01 15:24:19 -06:00 committed by GitHub
parent 67a7fb7d22
commit d1b4d31d87
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -105,7 +105,7 @@ class EspionageOverviewScreen(val civInfo: Civilization, val worldScreen: WorldS
)
}
}
if (worldScreen.viewingCiv != civInfo) {
if (!worldScreen.canChangeState) {
// Spectators aren't allowed to move the spies of the Civs they are viewing
moveSpyButton.disable()
}