mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-13 20:49:47 +00:00
Merge pull request #143 from ilan-schemoul/warship-target
feat: WarShips red color outside if target current player
This commit is contained in:
@@ -110,6 +110,7 @@ export class WarshipExecution implements Execution {
|
||||
return distSortUnit(this.mg, this.warship)(a, b);
|
||||
})[0] ?? null;
|
||||
|
||||
this.warship.setTarget(this.target);
|
||||
if (this.target == null || this.target.type() != UnitType.TradeShip) {
|
||||
// Patrol unless we are hunting down a tradeship
|
||||
const result = this.pathfinder.nextTile(
|
||||
|
||||
Reference in New Issue
Block a user