mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-03 20:20:40 +00:00
AttackImpl
This commit is contained in:
@@ -44,12 +44,12 @@ export class AttackImpl implements Attack {
|
||||
if (this._target.isPlayer()) {
|
||||
(this._target as PlayerImpl)._incomingAttacks = (
|
||||
this._target as PlayerImpl
|
||||
)._incomingAttacks.filter((a) => a != this);
|
||||
)._incomingAttacks.filter((a) => a !== this);
|
||||
}
|
||||
|
||||
(this._attacker as PlayerImpl)._outgoingAttacks = (
|
||||
this._attacker as PlayerImpl
|
||||
)._outgoingAttacks.filter((a) => a != this);
|
||||
)._outgoingAttacks.filter((a) => a !== this);
|
||||
|
||||
this._isActive = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user