Fixed heal bell + soundproof + gastro acid

This commit is contained in:
Eduardo Quezada D'Ottone 2021-10-02 18:21:02 -03:00
parent b29f5c801f
commit a22a456268

View file

@ -10770,7 +10770,7 @@ static void Cmd_healpartystatus(void)
else else
party = gEnemyParty; party = gEnemyParty;
if (gBattleMons[gBattlerAttacker].ability != ABILITY_SOUNDPROOF) if (GetBattlerAbility(gBattlerAttacker) != ABILITY_SOUNDPROOF)
{ {
gBattleMons[gBattlerAttacker].status1 = 0; gBattleMons[gBattlerAttacker].status1 = 0;
gBattleMons[gBattlerAttacker].status2 &= ~(STATUS2_NIGHTMARE); gBattleMons[gBattlerAttacker].status2 &= ~(STATUS2_NIGHTMARE);
@ -10786,7 +10786,7 @@ static void Cmd_healpartystatus(void)
if (gBattleTypeFlags & BATTLE_TYPE_DOUBLE if (gBattleTypeFlags & BATTLE_TYPE_DOUBLE
&& !(gAbsentBattlerFlags & gBitTable[gActiveBattler])) && !(gAbsentBattlerFlags & gBitTable[gActiveBattler]))
{ {
if (gBattleMons[gActiveBattler].ability != ABILITY_SOUNDPROOF) if (GetBattlerAbility(gActiveBattler) != ABILITY_SOUNDPROOF)
{ {
gBattleMons[gActiveBattler].status1 = 0; gBattleMons[gActiveBattler].status1 = 0;
gBattleMons[gActiveBattler].status2 &= ~(STATUS2_NIGHTMARE); gBattleMons[gActiveBattler].status2 &= ~(STATUS2_NIGHTMARE);