add covert cloak check for stats

This commit is contained in:
ghoulslash 2022-12-06 12:42:01 -05:00
parent 2391150274
commit 04e9c181ad

View File

@ -10853,6 +10853,12 @@ static u32 ChangeStatBuffs(s8 statValue, u32 statId, u32 flags, const u8 *BS_ptr
}
else if (activeBattlerAbility == ABILITY_SHIELD_DUST && flags == 0)
{
RecordAbilityBattle(gActiveBattler, ABILITY_SHIELD_DUST);
return STAT_CHANGE_DIDNT_WORK;
}
else if (flags == 0 && GetBattlerHoldEffect(gActiveBattler, TRUE) == HOLD_EFFECT_COVERT_CLOAK)
{
RecordItemEffectBattle(gActiveBattler, HOLD_EFFECT_COVERT_CLOAK);
return STAT_CHANGE_DIDNT_WORK;
}
else // try to decrease