Fix Pickup causing crash outside of battle

This commit is contained in:
Flashfyre committed 2024-03-07 08:23:21 -05:00
1 parent 9ff7a95dc0
commit d18eba4df8
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1283,7 +1283,7 @@ function canApplyAttr(pokemon: Pokemon, attr: AbAttr): boolean {
}
function queueShowAbility(pokemon: Pokemon): void {
pokemon.scene.unshiftPhase(new ShowAbilityPhase(pokemon.scene, pokemon.getBattlerIndex()));
pokemon.scene.unshiftPhase(new ShowAbilityPhase(pokemon.scene, pokemon.id));
pokemon.scene.clearPhaseQueueSplice();
}