mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-06 13:38:41 +00:00
Fix merge issue
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user