mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 15:00:43 +00:00
nukes don't destroy other nukes
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user