Merge pull request #2548 from LOuroboros/clearBody

Made Clear Body and similar abilities be normally affected by their own stat stage reductions
This commit is contained in:
Eduardo Quezada D'Ottone 2023-01-01 11:37:11 -03:00 committed by GitHub
commit 682bcd4554
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10876,7 +10876,7 @@ static u32 ChangeStatBuffs(s8 statValue, u32 statId, u32 flags, const u8 *BS_ptr
else if ((activeBattlerAbility == ABILITY_CLEAR_BODY else if ((activeBattlerAbility == ABILITY_CLEAR_BODY
|| activeBattlerAbility == ABILITY_FULL_METAL_BODY || activeBattlerAbility == ABILITY_FULL_METAL_BODY
|| activeBattlerAbility == ABILITY_WHITE_SMOKE) || activeBattlerAbility == ABILITY_WHITE_SMOKE)
&& !certain && gCurrentMove != MOVE_CURSE) && !affectsUser && !certain && gCurrentMove != MOVE_CURSE)
{ {
if (flags == STAT_CHANGE_ALLOW_PTR) if (flags == STAT_CHANGE_ALLOW_PTR)
{ {