Intimidate affects defiant

This commit is contained in:
DizzyEggg 2020-04-18 12:29:35 +02:00
parent bc86292c93
commit b5ba1de7cf

View File

@ -516,7 +516,7 @@ void PrepareStringBattle(u16 stringId, u8 battler)
stringId = STRINGID_STATSWONTDECREASE2;
// Check Defiant and Competitive stat raise whenever a stat is lowered.
else if (stringId == STRINGID_PKMNSSTATCHANGED4
else if ((stringId == STRINGID_PKMNSSTATCHANGED4 || stringId == STRINGID_PKMNCUTSATTACKWITH)
&& ((GetBattlerAbility(gBattlerTarget) == ABILITY_DEFIANT && gBattleMons[gBattlerTarget].statStages[STAT_ATK] != 12)
|| (GetBattlerAbility(gBattlerTarget) == ABILITY_COMPETITIVE && gBattleMons[gBattlerTarget].statStages[STAT_SPATK] != 12))
&& gSpecialStatuses[gBattlerTarget].changedStatsBattlerId != BATTLE_PARTNER(gBattlerTarget))