Skip to content

Commit

Permalink
Fix the shimmers clicking method as html clicking leads to errors in …
Browse files Browse the repository at this point in the history
…case of cookie storm
  • Loading branch information
iacosite committed Jun 16, 2020
1 parent 8f0f85a commit 12a6746
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions CookieButler.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,19 @@ class ShimmersManager extends RepeatingManager {
}

PopAllShimmers() {
window.Game.shimmers.forEach((shimmer) => this.PopShimmer(shimmer));
}

PopShimmer(shimmer) {
this.CBLogger.Update(
this.Status.Name + "::PopShimmer",
"Wrath: " + shimmer.wrath,
shimmer
);
shimmer.pop();
}

PopAllShimmersByClicking() {
// Click all the golden cookies and reindeers
let elements = CBDOMUtilities.GetDOMElements("shimmer");
let len = elements.length;
Expand Down

0 comments on commit 12a6746

Please sign in to comment.