fixed bug with zeroing out abilities on switch-in

This commit is contained in:
AgustinGDLV 2023-06-03 11:58:57 -07:00
parent d795256142
commit 1ea23daefe

View file

@ -3307,7 +3307,8 @@ void SwitchInClearSetData(void)
{
u32 side = GetBattlerSide(gActiveBattler);
u32 partyIndex = gBattlerPartyIndexes[gActiveBattler];
gBattleMons[gActiveBattler].ability = gBattleStruct->overwrittenAbilities[gActiveBattler] = TestRunner_Battle_GetForcedAbility(side, partyIndex);
if (TestRunner_Battle_GetForcedAbility(side, partyIndex))
gBattleMons[i].ability = gBattleStruct->overwrittenAbilities[i] = TestRunner_Battle_GetForcedAbility(side, partyIndex);
}
Ai_UpdateSwitchInData(gActiveBattler);