candybox2 / candybox

Candy Box (first version)
https://candybox2.github.io/candybox
199 stars 58 forks source link

Acid Rain and Earthquake Scrolls don't work after defeating Yourself with Surpass method #17

Open avengah opened 2 years ago

avengah commented 2 years ago

For some reason, in the code for those two scrolls, there's a check for if yourself.end = false before letting you use either of them. This variable is set to true if you defeat Yourself using the Surpass Yourself method (if you use magic to defeat Yourself, the variable is unchanged as magic erases the enemy before it can change anything; a side effect of this is that enemies defeated with magic will never drop Candies or items). Once this variable is set to true, it will only revert back to false if you save and reload the game, or start the Yourself level again (and don't win via the Surpass method; either lose, Escape, GMOOH or kill him with magic this time).