mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-02-22 20:33:47 +01:00
Use the right defensive target stats during Shell Side Arm calculation
This commit is contained in:
parent
b23d5db598
commit
4bdbef9a9d
@ -9036,7 +9036,7 @@ static void Cmd_various(void)
|
|||||||
attackerAtkStat *= gStatStageRatios[statStage][0];
|
attackerAtkStat *= gStatStageRatios[statStage][0];
|
||||||
attackerAtkStat /= gStatStageRatios[statStage][1];
|
attackerAtkStat /= gStatStageRatios[statStage][1];
|
||||||
|
|
||||||
statStage = gBattleMons[gBattlerTarget].statStages[STAT_ATK];
|
statStage = gBattleMons[gBattlerTarget].statStages[STAT_DEF];
|
||||||
targetDefStat *= gStatStageRatios[statStage][0];
|
targetDefStat *= gStatStageRatios[statStage][0];
|
||||||
targetDefStat /= gStatStageRatios[statStage][1];
|
targetDefStat /= gStatStageRatios[statStage][1];
|
||||||
|
|
||||||
@ -9046,7 +9046,7 @@ static void Cmd_various(void)
|
|||||||
attackerSpAtkStat *= gStatStageRatios[statStage][0];
|
attackerSpAtkStat *= gStatStageRatios[statStage][0];
|
||||||
attackerSpAtkStat /= gStatStageRatios[statStage][1];
|
attackerSpAtkStat /= gStatStageRatios[statStage][1];
|
||||||
|
|
||||||
statStage = gBattleMons[gBattlerTarget].statStages[STAT_SPATK];
|
statStage = gBattleMons[gBattlerTarget].statStages[STAT_SPDEF];
|
||||||
targetSpDefStat *= gStatStageRatios[statStage][0];
|
targetSpDefStat *= gStatStageRatios[statStage][0];
|
||||||
targetSpDefStat /= gStatStageRatios[statStage][1];
|
targetSpDefStat /= gStatStageRatios[statStage][1];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user