Skip to content

Make Tera Blast show up as Usually Useless for formats it's banned in#2692

Open
23PLevinJ wants to merge 1 commit into
smogon:masterfrom
23PLevinJ:patch-1
Open

Make Tera Blast show up as Usually Useless for formats it's banned in#2692
23PLevinJ wants to merge 1 commit into
smogon:masterfrom
23PLevinJ:patch-1

Conversation

@23PLevinJ

Copy link
Copy Markdown

@23PLevinJ 23PLevinJ changed the title Update battle-dex-search.ts Make Tera Blast show up as Usually Useless for formats it's banned in May 28, 2026
@iforgetwhyimhere

Copy link
Copy Markdown
Member

This should probably check for: is Gen 9, does not have -Tera Blast, and does not have Terastal Clause (in the banlist/ruleset) instead (dynamic checking).

@23PLevinJ

Copy link
Copy Markdown
Author

how would i implement those edits?

@iforgetwhyimhere

Copy link
Copy Markdown
Member

Hm, I suppose there's no easy way to call the ruleTable to check it. Probably would he something for another PR?

@23PLevinJ

Copy link
Copy Markdown
Author

yeah maybe

return (!moves.includes('flareblitz') && !moves.includes('pyroball') && !moves.includes('sacredfire') &&
!moves.includes('bitterblade') && !moves.includes('firepunch')) || this.isDoubles;
case 'terablast':
return !(dex.gen === 9 && !this.formatType && ['ou', 'uu', 'ru', 'nu', 'pu', 'zu'].includes(format));

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This logic is reversed

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, it would be better if this actually pulled from the formats where tera blast is banned through some kind of code logic instead of hardcoding them.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that is what the rest of the conversation was. its on my to-do list but shouldnt stop this from merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants