Only apply Moxie and Beast Boost when on field

This commit is contained in:
Flashfyre 2024-03-29 23:16:28 -04:00
parent 1be1be7098
commit 371b00561a

View File

@ -3011,6 +3011,7 @@ export class VictoryPhase extends PokemonPhase {
if (exp) { if (exp) {
const partyMemberIndex = party.indexOf(expPartyMembers[pm]); const partyMemberIndex = party.indexOf(expPartyMembers[pm]);
this.scene.unshiftPhase(expPartyMembers[pm].isOnField() ? new ExpPhase(this.scene, partyMemberIndex, exp) : new ShowPartyExpBarPhase(this.scene, partyMemberIndex, exp)); this.scene.unshiftPhase(expPartyMembers[pm].isOnField() ? new ExpPhase(this.scene, partyMemberIndex, exp) : new ShowPartyExpBarPhase(this.scene, partyMemberIndex, exp));
if (expPartyMembers[pm].isOnField())
applyPostVictoryAbAttrs(PostVictoryAbAttr, expPartyMembers[pm]); applyPostVictoryAbAttrs(PostVictoryAbAttr, expPartyMembers[pm]);
} }
} }