Skip to content

Commit

Permalink
Merge pull request #14 from iacosite/iacosite/fix_shimmers
Browse files Browse the repository at this point in the history
Fix the shimmers clicking method
  • Loading branch information
iacosite authored Jun 16, 2020
2 parents 8f0f85a + 12a6746 commit b2ab745
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 b2ab745

Please sign in to comment.