Skip to content

Commit adbf136

Browse files
committed
style: rename to reflect weight change
1 parent 4129b54 commit adbf136

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/execution/NukeExecution.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ export class NukeExecution implements Execution {
9191
}
9292

9393
const threshold = this.mg.config().nukeAllianceBreakThreshold();
94-
for (const [attackedPlayer, tilesDestroyed] of attacked) {
94+
for (const [attackedPlayer, totalWeight] of attacked) {
9595
if (
96-
tilesDestroyed > threshold &&
96+
totalWeight > threshold &&
9797
this.nuke.type() !== UnitType.MIRVWarhead
9898
) {
9999
// Resolves exploit of alliance breaking in which a pending alliance request

0 commit comments

Comments
 (0)