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

Photon Geyser checking damage category incorrectly #3806

Closed
VyaxUltima opened this issue Dec 23, 2023 · 0 comments · Fixed by #3807
Closed

Photon Geyser checking damage category incorrectly #3806

VyaxUltima opened this issue Dec 23, 2023 · 0 comments · Fixed by #3807
Assignees
Labels
bug Bug category: battle-mechanic Pertains to battle mechanics status: unconfirmed This bug has not been reproduced yet

Comments

@VyaxUltima
Copy link

Description

Currently, Photon Geyser's logic of when it becomes a physical move is reversed.

charmandergeyser

As seen here, Special Attack initially exceeds Attack, which means Photon Geyser should be a special move. However, Counter is used and succeeds, indicating a physical move.

Later, after Swords Dance is used, Counter fails on Photon Geyser, so it is treated as a special move, even though Attack exceeds Special Attack.

The offending line appears to be gBattleStruct->swapDamageCategory = (GetSplitBasedOnStats(battler) == SPLIT_SPECIAL);, inside src/battle_script_commands.c. If the function inside the expression returns SPLIT_SPECIAL, then that expression evaluates to 1. However, the line if (gBattleStruct != NULL && gBattleStruct->swapDamageCategory) inside src/battle_util.c returns SPLIT_PHYSICAL if it ends up evaluating to true.

Version

1.7.0 (Default)

Upcoming Version

No response

Discord contact info

No response

@VyaxUltima VyaxUltima added bug Bug category: battle-mechanic Pertains to battle mechanics status: unconfirmed This bug has not been reproduced yet labels Dec 23, 2023
@AlexOn1ine AlexOn1ine self-assigned this Dec 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug category: battle-mechanic Pertains to battle mechanics status: unconfirmed This bug has not been reproduced yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants