Force set gSwapDamageCategory's initial value in Photon Geyser's and Shell Side Arm's calculations
This commit is contained in:
parent
4bdbef9a9d
commit
c2e8c1058f
1 changed files with 4 additions and 0 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue