Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var wizardSpell = 'hand of fate';
- var grimoir = Game.ObjectsById[7].minigame;
- var wizordLoop = setInterval(function() {
- if (
- (grimoir.magic == grimoir.magicM) && // if mana is full
- (grimoir.magic > (grimoir.spells[wizordSpell].costMin
- + grimoir.magicM*grimoir.spells[wizordSpell].costPercent))) // and if there is enough in total,
- {
- grimoir.castSpell(grimoir.spells[wizordSpell])
- Game.Notify(`ze spel iz cast`,'cooki wizord vil wait for mor mana now',[23,6]); // cast the spell
- if (wizordSpell == 'hand of fate') { // if the spell was Force the Hand of Fate
- Game.shimmers.forEach(function(shimmer) {
- if ((shimmer.type == "golden") && (shimmer.wrath == 0)) { shimmer.pop() } // click the newly spawned golden cookie
- });
- }
- }
- }, 1000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement