mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-29 04:52:43 +02:00
Using phaseManager
This commit is contained in:
parent
69b99887d9
commit
2f794dbc6e
@ -47,7 +47,7 @@ export class BypassSpeedChanceHeldItem extends HeldItem {
|
||||
globalScene.currentBattle.turnCommands[pokemon.getBattlerIndex()]?.command === Command.FIGHT;
|
||||
|
||||
if (isCommandFight) {
|
||||
globalScene.queueMessage(
|
||||
globalScene.phaseManager.queueMessage(
|
||||
i18next.t("modifier:bypassSpeedChanceApply", {
|
||||
pokemonName: getPokemonNameWithAffix(pokemon),
|
||||
itemName: this.name,
|
||||
|
@ -51,7 +51,7 @@ export class ResetNegativeStatStageHeldItem extends ConsumableHeldItem {
|
||||
}
|
||||
|
||||
if (statRestored) {
|
||||
globalScene.queueMessage(
|
||||
globalScene.phaseManager.queueMessage(
|
||||
i18next.t("modifier:resetNegativeStatStageApply", {
|
||||
pokemonNameWithAffix: getPokemonNameWithAffix(pokemon),
|
||||
typeName: this.name,
|
||||
|
@ -43,7 +43,7 @@ export class SurviveChanceHeldItem extends HeldItem {
|
||||
if (!surviveDamage.value && pokemon.randBattleSeedInt(10) < stackCount) {
|
||||
surviveDamage.value = true;
|
||||
|
||||
globalScene.queueMessage(
|
||||
globalScene.phaseManager.queueMessage(
|
||||
i18next.t("modifier:surviveDamageApply", {
|
||||
pokemonNameWithAffix: getPokemonNameWithAffix(pokemon),
|
||||
typeName: this.name,
|
||||
|
Loading…
Reference in New Issue
Block a user