mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-26 08:46:55 +00:00
Only apply Moxie and Beast Boost when on field
This commit is contained in:
parent
1be1be7098
commit
371b00561a
@ -3011,7 +3011,8 @@ 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));
|
||||||
applyPostVictoryAbAttrs(PostVictoryAbAttr, expPartyMembers[pm]);
|
if (expPartyMembers[pm].isOnField())
|
||||||
|
applyPostVictoryAbAttrs(PostVictoryAbAttr, expPartyMembers[pm]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user