Fix ABILITY_POPUP not respecting abilityPopupOverwrite in tests (#4423)
This commit is contained in:
parent
fa53e97f0c
commit
d398b9e8e7
1 changed files with 3 additions and 3 deletions
|
@ -3243,6 +3243,9 @@ void CreateAbilityPopUp(u8 battlerId, u32 ability, bool32 isDoubleBattle)
|
|||
if (B_ABILITY_POP_UP == FALSE)
|
||||
return;
|
||||
|
||||
if (gBattleScripting.abilityPopupOverwrite != 0)
|
||||
ability = gBattleScripting.abilityPopupOverwrite;
|
||||
|
||||
if (gTestRunnerEnabled)
|
||||
{
|
||||
TestRunner_Battle_RecordAbilityPopUp(battlerId, ability);
|
||||
|
@ -3250,9 +3253,6 @@ void CreateAbilityPopUp(u8 battlerId, u32 ability, bool32 isDoubleBattle)
|
|||
return;
|
||||
}
|
||||
|
||||
if (gBattleScripting.abilityPopupOverwrite != 0)
|
||||
ability = gBattleScripting.abilityPopupOverwrite;
|
||||
|
||||
if (!gBattleStruct->activeAbilityPopUps)
|
||||
{
|
||||
LoadSpriteSheet(&sSpriteSheet_AbilityPopUp);
|
||||
|
|
Loading…
Reference in a new issue