mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-18 01:14:19 +01:00
Fix preasure + Gastro Acid
This commit is contained in:
parent
a22a456268
commit
9d64a26625
@ -1268,7 +1268,7 @@ void PressurePPLose(u8 target, u8 attacker, u16 move)
|
|||||||
{
|
{
|
||||||
int moveIndex;
|
int moveIndex;
|
||||||
|
|
||||||
if (gBattleMons[target].ability != ABILITY_PRESSURE)
|
if (GetBattlerAbility(target) != ABILITY_PRESSURE)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
for (moveIndex = 0; moveIndex < MAX_MON_MOVES; moveIndex++)
|
for (moveIndex = 0; moveIndex < MAX_MON_MOVES; moveIndex++)
|
||||||
@ -1300,7 +1300,7 @@ void PressurePPLoseOnUsingImprison(u8 attacker)
|
|||||||
|
|
||||||
for (i = 0; i < gBattlersCount; i++)
|
for (i = 0; i < gBattlersCount; i++)
|
||||||
{
|
{
|
||||||
if (atkSide != GetBattlerSide(i) && gBattleMons[i].ability == ABILITY_PRESSURE)
|
if (atkSide != GetBattlerSide(i) && GetBattlerAbility(i) == ABILITY_PRESSURE)
|
||||||
{
|
{
|
||||||
for (j = 0; j < MAX_MON_MOVES; j++)
|
for (j = 0; j < MAX_MON_MOVES; j++)
|
||||||
{
|
{
|
||||||
@ -1333,7 +1333,7 @@ void PressurePPLoseOnUsingPerishSong(u8 attacker)
|
|||||||
|
|
||||||
for (i = 0; i < gBattlersCount; i++)
|
for (i = 0; i < gBattlersCount; i++)
|
||||||
{
|
{
|
||||||
if (gBattleMons[i].ability == ABILITY_PRESSURE && i != attacker)
|
if (GetBattlerAbility(i) == ABILITY_PRESSURE && i != attacker)
|
||||||
{
|
{
|
||||||
for (j = 0; j < MAX_MON_MOVES; j++)
|
for (j = 0; j < MAX_MON_MOVES; j++)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user