nukes don't destroy other nukes

This commit is contained in:
Evan
2024-11-23 20:00:21 -08:00
parent 110daccdc4
commit 5334cd4e9f
+4 -2
View File
@@ -84,8 +84,10 @@ export class NukeExecution implements Execution {
}
}
for (const unit of this.mg.units()) {
if (euclideanDist(this.cell, unit.tile().cell()) < magnitude.outer) {
unit.delete()
if (unit.type() != UnitType.AtomBomb && unit.type() != UnitType.HydrogenBomb) {
if (euclideanDist(this.cell, unit.tile().cell()) < magnitude.outer) {
unit.delete()
}
}
}
// this.mg.units()