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

Refactor STAB (again) #10099

Merged
merged 3 commits into from
Jan 14, 2024
Merged

Refactor STAB (again) #10099

merged 3 commits into from
Jan 14, 2024

Conversation

Karthik99999
Copy link
Contributor

Originally was just trying to fix a bug with the pledge moves and tera stellar (combined pledge moves should always be boosted to 2x by tera stellar), but may have gotten a little carried away. Anyway, this changes the STAB code to much more closely resemble the actual STAB code from the games, and introduces a new ModifySTAB event to further improve the separation and readability of the Adaptability logic.

data/conditions.ts Outdated Show resolved Hide resolved
@KrisXV
Copy link
Member

KrisXV commented Jan 12, 2024

@Marty-D @DaWoblefet any opinions/input?

@DaWoblefet DaWoblefet merged commit 06d8874 into smogon:master Jan 14, 2024
1 check passed
@DaWoblefet
Copy link
Member

Thanks Karthik!

@Karthik99999 Karthik99999 deleted the stab branch January 15, 2024 01:41
MathyFurret pushed a commit to MathyFurret/pokemon-showdown that referenced this pull request May 21, 2024
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.

4 participants