mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-05 07:52:17 +02:00
Add edge cases of supressed/overriden wonder guard bosses
This commit is contained in:
parent
a5d6226f16
commit
b8a9c99edb
@ -1723,7 +1723,7 @@ export class CommandPhase extends FieldPhase {
|
|||||||
}, null, true);
|
}, null, true);
|
||||||
} else if (cursor < 5) {
|
} else if (cursor < 5) {
|
||||||
const targetPokemon = this.scene.getEnemyField().find(p => p.isActive(true));
|
const targetPokemon = this.scene.getEnemyField().find(p => p.isActive(true));
|
||||||
if (targetPokemon.isBoss() && targetPokemon.bossSegmentIndex >= 1 && !targetPokemon.hasAbility(Abilities.WONDER_GUARD) && cursor < PokeballType.MASTER_BALL) {
|
if (targetPokemon.isBoss() && targetPokemon.bossSegmentIndex >= 1 && !targetPokemon.hasAbility(Abilities.WONDER_GUARD, false, true) && cursor < PokeballType.MASTER_BALL) {
|
||||||
this.scene.ui.setMode(Mode.COMMAND, this.fieldIndex);
|
this.scene.ui.setMode(Mode.COMMAND, this.fieldIndex);
|
||||||
this.scene.ui.setMode(Mode.MESSAGE);
|
this.scene.ui.setMode(Mode.MESSAGE);
|
||||||
this.scene.ui.showText(i18next.t('menu:noPokeballStrong'), null, () => {
|
this.scene.ui.showText(i18next.t('menu:noPokeballStrong'), null, () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user