SAMMissileExecution

This commit is contained in:
Scott Anderson
2025-04-14 20:41:45 -04:00
parent 82ab591bba
commit b3e9152125
+2 -2
View File
@@ -31,7 +31,7 @@ export class SAMMissileExecution implements Execution {
}
tick(ticks: number): void {
if (this.SAMMissile == null) {
if (this.SAMMissile === null) {
this.SAMMissile = this._owner.buildUnit(
UnitType.SAMMissile,
0,
@@ -47,7 +47,7 @@ export class SAMMissileExecution implements Execution {
if (
!this.target.isActive() ||
!this.ownerUnit.isActive() ||
this.target.owner() == this.SAMMissile.owner() ||
this.target.owner() === this.SAMMissile.owner() ||
!nukesWhitelist.includes(this.target.type())
) {
this.SAMMissile.delete(false);