From 04e9c181ad01998fca9ec335fcf9f964d00e8ba6 Mon Sep 17 00:00:00 2001 From: ghoulslash Date: Tue, 6 Dec 2022 12:42:01 -0500 Subject: [PATCH] add covert cloak check for stats --- src/battle_script_commands.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/battle_script_commands.c b/src/battle_script_commands.c index 059265588..07ccc8e1c 100644 --- a/src/battle_script_commands.c +++ b/src/battle_script_commands.c @@ -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