fixed bug with zeroing out abilities on switch-in
This commit is contained in:
parent
d795256142
commit
1ea23daefe
1 changed files with 2 additions and 1 deletions
|
@ -3307,7 +3307,8 @@ void SwitchInClearSetData(void)
|
||||||
{
|
{
|
||||||
u32 side = GetBattlerSide(gActiveBattler);
|
u32 side = GetBattlerSide(gActiveBattler);
|
||||||
u32 partyIndex = gBattlerPartyIndexes[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);
|
Ai_UpdateSwitchInData(gActiveBattler);
|
||||||
|
|
Loading…
Reference in a new issue