Skip to content

Commit

Permalink
Fix Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ShivaD173 committed Sep 7, 2024
1 parent 5c5a2b9 commit 0cd3c07
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
8 changes: 6 additions & 2 deletions data/mods/gen9vgcgay/formats-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3673,8 +3673,8 @@ export const FormatsData: import('../../../sim/dex-species').ModdedSpeciesFormat
"tier": "Uber"
},
"zygarde": {
"isNonstandard": "Past",
"tier": "Illegal"
"isNonstandard": null,
"tier": "Uber"
},
"zygarde10": {
"isNonstandard": null,
Expand Down Expand Up @@ -5612,6 +5612,10 @@ export const FormatsData: import('../../../sim/dex-species').ModdedSpeciesFormat
"isNonstandard": "Past",
"tier": "Illegal"
},
"chuggalong": {
"isNonstandard": "Past",
"tier": "Illegal"
},
"pokestarsmeargle": {
"isNonstandard": "Past",
"tier": "Illegal"
Expand Down
4 changes: 2 additions & 2 deletions data/text/abilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2496,7 +2496,7 @@ export const AbilitiesText: {[id: IDEntry]: AbilityText} = {
barriercore: {
name: "Barrier Core",
desc: "User uses Magic Coat on switch in.",
shortDesc: "User uses Barrier on switch in.",
shortDesc: "User uses Magic Coat on switch in.",
},
hazardcore: {
name: "Hazard Core",
Expand All @@ -2505,7 +2505,7 @@ export const AbilitiesText: {[id: IDEntry]: AbilityText} = {
},
hyperbolictime: {
name: "Hyperbolic Time",
desc: "End-of-turn effects happen twice while user is on the field.",
desc: "End-of-turn effects happen twice while user is on the field. Does not stack.",
shortDesc: "End-of-turn effects happen twice while user is on the field.",
},
megashiftx: {
Expand Down
8 changes: 5 additions & 3 deletions sim/battle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -490,9 +490,11 @@ export class Battle {
}
this.speedSort(handlers);
let hyperbolicTimeEnabled = false;
for (const handler of handlers) {
if ((handler.effectHolder as Pokemon).hasAbility("Hyperbolic Time")) {
hyperbolicTimeEnabled = true;
for (const side of this.sides) {
for (const active of side.active) {
if (active.hasAbility("Hyperbolic Time")) {
hyperbolicTimeEnabled = true;
}
}
}
while (handlers.length) {
Expand Down

0 comments on commit 0cd3c07

Please sign in to comment.