Skip to content

Commit

Permalink
Fix moving commanders when their base is taken
Browse files Browse the repository at this point in the history
  • Loading branch information
Kern046 committed Aug 9, 2017
1 parent bf8fa16 commit a4887c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Modules/Athena/Manager/OrbitalBaseManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ public function changeOwnerById($id, $base, $newOwner, $baseCommanders) {
if (in_array($commander->statement, [Commander::INSCHOOL, Commander::ONSALE, Commander::RESERVE])) {
$commander->rPlayer = $newOwner;
} else if ($commander->statement == Commander::MOVING) {
$commander->statement = Commander::RETIRED;
$this->commanderManager->endTravel($commander, Commander::RETIRED);
$this->realtimeActionScheduler->cancel($commander, $commander->getArrivalDate());
} else {
$commander->statement = Commander::DEAD;
Expand Down

0 comments on commit a4887c5

Please sign in to comment.