mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-19 22:09:27 +02:00
Move trapped messages into a .then() statement
This commit is contained in:
parent
7131e1fb01
commit
711043ac54
@ -474,8 +474,7 @@ export class CommandPhase extends FieldPhase {
|
|||||||
}
|
}
|
||||||
if (trappedAbMessages.length > 0) {
|
if (trappedAbMessages.length > 0) {
|
||||||
if (isSwitch) {
|
if (isSwitch) {
|
||||||
globalScene.ui.setMode(UiMode.MESSAGE);
|
globalScene.ui.setMode(UiMode.MESSAGE).then(() => {
|
||||||
}
|
|
||||||
globalScene.ui.showText(
|
globalScene.ui.showText(
|
||||||
trappedAbMessages[0],
|
trappedAbMessages[0],
|
||||||
null,
|
null,
|
||||||
@ -488,6 +487,8 @@ export class CommandPhase extends FieldPhase {
|
|||||||
null,
|
null,
|
||||||
true,
|
true,
|
||||||
);
|
);
|
||||||
|
});
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
const trapTag = playerPokemon.getTag(TrappedTag);
|
const trapTag = playerPokemon.getTag(TrappedTag);
|
||||||
const fairyLockTag = globalScene.arena.getTagOnSide(ArenaTagType.FAIRY_LOCK, ArenaTagSide.PLAYER);
|
const fairyLockTag = globalScene.arena.getTagOnSide(ArenaTagType.FAIRY_LOCK, ArenaTagSide.PLAYER);
|
||||||
|
Loading…
Reference in New Issue
Block a user