mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-22 23:35:21 +00:00
uses attacker.units(UnitType.TransportShip)
This commit is contained in:
@@ -164,9 +164,9 @@ export class EventsDisplay extends LitElement implements Layer {
|
||||
const target = this.game.playerBySmallID(targetID) as PlayerView;
|
||||
if (!attacker || !target) return null;
|
||||
|
||||
const boats = this.game
|
||||
const boats = attacker
|
||||
.units(UnitType.TransportShip)
|
||||
.filter((u) => u.owner().smallID() === attackerID && u.isActive());
|
||||
.filter((u) => u.isActive());
|
||||
|
||||
let fallbackBoat: UnitView | null = null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user