Skip to content

Commit

Permalink
fix(quest): Fixed Anomaly Mewtwo 5 temp battle again (pokeclicker#4976)
Browse files Browse the repository at this point in the history
Co-authored-by: CypherX <[email protected]>
  • Loading branch information
RegisCoaxans and CypherX authored Dec 19, 2023
1 parent 6acb88f commit b12eb63
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pokeclicker",
"version": "0.10.17",
"version": "0.10.18",
"description": "PokéClicker repository",
"main": "index.js",
"scripts": {
Expand Down
6 changes: 6 additions & 0 deletions src/scripts/Update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2537,6 +2537,12 @@ class Update implements Saveable {
saveData.statistics.temporaryBattleDefeated[223] = 0;
}
},
'0.10.18': ({ saveData }) => {
// Actually fix Anomaly Mewtwo 5 if the quest is not completed.
if ((saveData.quests.questLines.find(ql => ql.name === 'An Unrivaled Power')?.state ?? 0) !== 2) {
saveData.statistics.temporaryBattleDefeated[223] = 0;
}
},
};

constructor() {
Expand Down

0 comments on commit b12eb63

Please sign in to comment.