Skip to content

Commit 81b9c54

Browse files
committed
perf: exclude extra bfs search if mirv
1 parent 8be2e79 commit 81b9c54

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/core/execution/NukeExecution.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,9 @@ export class NukeExecution implements Execution {
138138
targetTile: this.dst,
139139
trajectory: this.getTrajectory(this.dst),
140140
});
141-
this.maybeBreakAlliances(this.tilesInRange());
141+
if (this.nuke.type() !== UnitType.MIRVWarhead) {
142+
this.maybeBreakAlliances(this.tilesInRange());
143+
}
142144
if (this.mg.hasOwner(this.dst)) {
143145
const target = this.mg.owner(this.dst);
144146
if (!target.isPlayer()) {

0 commit comments

Comments
 (0)