Fix merge issue

This commit is contained in:
variablevince
2025-10-27 22:33:08 +01:00
parent 09899ab2da
commit bd5654434a
+3 -3
View File
@@ -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;
}