Force set gSwapDamageCategory's initial value in Photon Geyser's and Shell Side Arm's calculations

This commit is contained in:
LOuroboros 2021-11-05 23:07:26 -03:00
parent 4bdbef9a9d
commit c2e8c1058f

View file

@ -9011,6 +9011,8 @@ static void Cmd_various(void)
u8 attackerAtkStage = gBattleMons[gBattlerAttacker].statStages[STAT_ATK];
u32 attackerSpAtkStat = gBattleMons[gBattlerAttacker].spAttack;
gSwapDamageCategory = FALSE;
attackerAtkStat *= gStatStageRatios[attackerAtkStage][0];
attackerAtkStat /= gStatStageRatios[attackerAtkStage][1];
@ -9032,6 +9034,8 @@ static void Cmd_various(void)
u32 physical;
u32 special;
gSwapDamageCategory = FALSE;
statStage = gBattleMons[gBattlerAttacker].statStages[STAT_ATK];
attackerAtkStat *= gStatStageRatios[statStage][0];
attackerAtkStat /= gStatStageRatios[statStage][1];