diff --git a/content/productivity/simultaneous-attack/plugin.js b/content/productivity/simultaneous-attack/plugin.js index e557b0c2..52dfe888 100644 --- a/content/productivity/simultaneous-attack/plugin.js +++ b/content/productivity/simultaneous-attack/plugin.js @@ -2,7 +2,7 @@ // // attack thing with many thing at the same time -var pg = df.getProcgenUtils(); +import * as pg from "https://cdn.skypack.dev/@darkforest_eth/procedural"; // removes all the child nodes of an element var removeAllChildNodes = (parent) => { @@ -64,7 +64,7 @@ var simultaneousAttack = (target, sources) => { // maybe somehow show the plugin user this error? if (Math.floor(energyArriving) <= 0) return; - df.move(attacker.locationId, target.locationId, Math.floor(attacker.energy * 0.5), 0); + df.move(attacker.locationId, target.locationId, Math.floor(attacker.energy * 0.5), 0, null, false); // waits for the duration of the longest move - the duration of the move itself to be sent. * 1k is to convert seconds to ms }, (longestMove - planetMove.time) * 1e3)); }