-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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 interaction between Tera Blast and Unaware #10030
base: master
Are you sure you want to change the base?
Fix interaction between Tera Blast and Unaware #10030
Conversation
There are 3 other moves that change their category based on the user’s stats using
You could just change |
That makes sense, I'll look into that. I posted this question on the issue, but why are there separate functions for |
55515d5
to
081ffba
Compare
Apologies, I rebased poorly and the branch got cluttered with other changes. GitHub automatically requested reviews from codeowners of those other files and now I can't remove the review request. |
Hi @pyuk-bot and @KrisXV, I implemented the approach that Pyuk suggested, could you review the new version and let me know what you think? I called out three open questions in the description:
|
Summary
Fixes issue #9381.
Also applied similar logic fixes to:
Solution
Adds a new parameter to
Pokemon.getStat()
calledignoreBoostModifiers
which, if true, skipsrunEvent('ModifyBoost')
to avoid effects that modify stat stage boosts at damage calculation time.By adding a new parameter, callers can opt-in to this behavior and we only opt-in for the four moves in the standard format that need this fix.
Open Questions
ModifyBoost
handlers.Future Work
These tasks could be saved for future pull requests:
Appendix
This new parameter skips event handlers that derive from the
ModifyBoost
event. As far as I can tell, that means it potentially affects interactions with these moves and abilities. Standard format entities are bolded.As far as I can tell, these are the moves and abilities that check a stat with boosts applied but not stat modifiers. These would be candidates for using the new parameter. Standard format entities are bolded.