Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Terastallization base power buff for priority moves called by Encore #10808

Merged
merged 3 commits into from
Jan 10, 2025

Conversation

andrebastosdias
Copy link
Contributor

@andrebastosdias andrebastosdias commented Jan 9, 2025

https://www.smogon.com/forums/threads/tera-bp-bump-and-encore.3757856/

"Using a move with priority (like Bullet Punch) forced via Encore will give the move a Tera BP bump to 60 when it should not. This is presumably because Encore is updating the move's priority mid-turn, but Tera BP should be checking the move's priority in move data, not what the move's current priority is."

I don't believe this introduces any collateral bugs.

@@ -1668,9 +1668,10 @@ export class BattleActions {
}

if (
basePower < 60 && source.getTypes(true).includes(move.type) && source.terastallized && move.priority <= 0 &&
basePower < 60 && source.getTypes(true).includes(move.type) && source.terastallized &&
this.dex.moves.get(move.id).priority <= 0 && !move.multihit &&
Copy link
Member

Choose a reason for hiding this comment

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

I would also get the move's true multihit status from move data while you're at it; Tera Electric Parental Bond Nuzzle, for example, will be 60 BP both times.

@DaWoblefet
Copy link
Member

Otherwise this looks good.

@KrisXV KrisXV changed the title Fix: Tera priority bump and Encore Fix Terastallization base power buff for priority moves called by Encore Jan 10, 2025
@KrisXV KrisXV merged commit 041bf6a into smogon:master Jan 10, 2025
1 check passed
@andrebastosdias andrebastosdias deleted the tera-priority branch January 10, 2025 05:55
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