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

Mold Breaker shouldn't remove abilities that don't affect direct damage #647

Merged
merged 1 commit into from
Oct 20, 2024

Conversation

shrianshChari
Copy link
Contributor

@shrianshChari shrianshChari commented Sep 30, 2024

Fixes https://www.smogon.com/forums/threads/pok%C3%A9mon-showdown-damage-calculator.3593546/post-10239710

Before:
0 SpA Mold Breaker Ampharos-Mega Dragon Pulse vs. 252 HP / 252+ SpD Iron Treads: 63-75 (16.4 - 19.5%) -- possible 8HKO
(Activate Electric Terrain)
0 SpA Mold Breaker Ampharos-Mega Dragon Pulse vs. 252 HP / 252+ SpD Iron Treads: 63-75 (16.4 - 19.5%) -- possible 8HKO

After:
0 SpA Mold Breaker Ampharos-Mega Dragon Pulse vs. 252 HP / 252+ SpD Iron Treads: 63-75 (16.4 - 19.5%) -- possible 8HKO
(Activate Electric Terrain)
0 SpA Mold Breaker Ampharos-Mega Dragon Pulse vs. 252 HP / 252+ SpD Quark Drive Iron Treads: 49-58 (12.7 - 15.1%) -- possibly the worst move ever

I think that if we used @pkmn/data and @pkmn/dex, then this code (as well as other pieces of code) can be cleaned up more easily, but that isn't taking into account any performance penalty and bundle size increase that may occur because of it.

@AustinXII AustinXII merged commit 27df82c into smogon:master Oct 20, 2024
2 checks passed
@shrianshChari shrianshChari deleted the mold-breaker-fix branch October 22, 2024 00:33
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.

2 participants