mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-29 21:12:45 +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;
|
globalScene.currentBattle.turnCommands[pokemon.getBattlerIndex()]?.command === Command.FIGHT;
|
||||||
|
|
||||||
if (isCommandFight) {
|
if (isCommandFight) {
|
||||||
globalScene.queueMessage(
|
globalScene.phaseManager.queueMessage(
|
||||||
i18next.t("modifier:bypassSpeedChanceApply", {
|
i18next.t("modifier:bypassSpeedChanceApply", {
|
||||||
pokemonName: getPokemonNameWithAffix(pokemon),
|
pokemonName: getPokemonNameWithAffix(pokemon),
|
||||||
itemName: this.name,
|
itemName: this.name,
|
||||||
|
@ -51,7 +51,7 @@ export class ResetNegativeStatStageHeldItem extends ConsumableHeldItem {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (statRestored) {
|
if (statRestored) {
|
||||||
globalScene.queueMessage(
|
globalScene.phaseManager.queueMessage(
|
||||||
i18next.t("modifier:resetNegativeStatStageApply", {
|
i18next.t("modifier:resetNegativeStatStageApply", {
|
||||||
pokemonNameWithAffix: getPokemonNameWithAffix(pokemon),
|
pokemonNameWithAffix: getPokemonNameWithAffix(pokemon),
|
||||||
typeName: this.name,
|
typeName: this.name,
|
||||||
|
@ -43,7 +43,7 @@ export class SurviveChanceHeldItem extends HeldItem {
|
|||||||
if (!surviveDamage.value && pokemon.randBattleSeedInt(10) < stackCount) {
|
if (!surviveDamage.value && pokemon.randBattleSeedInt(10) < stackCount) {
|
||||||
surviveDamage.value = true;
|
surviveDamage.value = true;
|
||||||
|
|
||||||
globalScene.queueMessage(
|
globalScene.phaseManager.queueMessage(
|
||||||
i18next.t("modifier:surviveDamageApply", {
|
i18next.t("modifier:surviveDamageApply", {
|
||||||
pokemonNameWithAffix: getPokemonNameWithAffix(pokemon),
|
pokemonNameWithAffix: getPokemonNameWithAffix(pokemon),
|
||||||
typeName: this.name,
|
typeName: this.name,
|
||||||
|
Loading…
Reference in New Issue
Block a user