Photon Geyser checking damage category incorrectly #3806
Labels
bug
Bug
category: battle-mechanic
Pertains to battle mechanics
status: unconfirmed
This bug has not been reproduced yet
Description
Currently, Photon Geyser's logic of when it becomes a physical move is reversed.
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 returnsSPLIT_SPECIAL
, then that expression evaluates to 1. However, the lineif (gBattleStruct != NULL && gBattleStruct->swapDamageCategory)
inside src/battle_util.c returnsSPLIT_PHYSICAL
if it ends up evaluating to true.Version
1.7.0 (Default)
Upcoming Version
No response
Discord contact info
No response
The text was updated successfully, but these errors were encountered: