uses attacker.units(UnitType.TransportShip)

This commit is contained in:
Rj Manhas
2025-11-11 17:30:45 -07:00
parent 3a39d21665
commit 34aaf5a67b
+2 -2
View File
@@ -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;