When capturing Civilian, stop current action (#6542)

* On captureCivilianUnit, stop current action

* Remove excess import

Co-authored-by: itanasi <spellman23@gmail.com>
This commit is contained in:
itanasi 2022-04-15 06:23:00 -07:00 committed by GitHub
parent 94e8264d36
commit 0e8a22a1e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -522,6 +522,8 @@ object Battle {
val defenderCiv = defender.getCivInfo()
val capturedUnit = defender.unit
// Stop current action
capturedUnit.action = null
val capturedUnitTile = capturedUnit.getTile()
val originalOwner = if (capturedUnit.originalOwner != null)