Fix potential issue with abilities that would cause Toxic Chain to not activate
This commit is contained in:
parent
a26050fbde
commit
1fd23ec929
1 changed files with 1 additions and 1 deletions
|
@ -7978,7 +7978,7 @@ u8 ItemBattleEffects(u8 caseID, u32 battler, bool32 moveTurn)
|
|||
break;
|
||||
case HOLD_EFFECT_CURE_STATUS: // only Toxic Chain's interaction with Knock Off
|
||||
case HOLD_EFFECT_CURE_PSN:
|
||||
if (gBattleMons[battler].status1 & STATUS1_PSN_ANY && !UnnerveOn(battler, gLastUsedItem) && gLastUsedAbility == ABILITY_TOXIC_CHAIN && gMovesInfo[gCurrentMove].effect == EFFECT_KNOCK_OFF)
|
||||
if (gBattleMons[battler].status1 & STATUS1_PSN_ANY && !UnnerveOn(battler, gLastUsedItem) && GetBattlerAbility(gBattlerAttacker) == ABILITY_TOXIC_CHAIN && gMovesInfo[gCurrentMove].effect == EFFECT_KNOCK_OFF)
|
||||
{
|
||||
gBattleScripting.battler = battler;
|
||||
gBattleMons[battler].status1 &= ~(STATUS1_PSN_ANY | STATUS1_TOXIC_COUNTER);
|
||||
|
|
Loading…
Reference in a new issue