diff --git a/src/core/game/PlayerImpl.ts b/src/core/game/PlayerImpl.ts index bf25de30c..61b2f5918 100644 --- a/src/core/game/PlayerImpl.ts +++ b/src/core/game/PlayerImpl.ts @@ -906,6 +906,9 @@ export class PlayerImpl implements Player { if (unit.isMarkedForDeletion()) { return false; } + if (unit.owner() !== this) { + return false; + } if (!skipUnitTypeCheck && !this.canUpgradeUnitType(unit.type())) { return false; } @@ -935,9 +938,6 @@ export class PlayerImpl implements Player { if (!this.isAlive()) { return false; } - if (unit.owner() !== this) { - return false; - } return true; }