mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-05 07:52:17 +02:00
Ensure pokemon names are replaced when there is no separator
This commit is contained in:
parent
e0e307c4d4
commit
314bcd22ac
@ -47,6 +47,10 @@ export class MessagePhase extends Phase {
|
|||||||
new MessagePhase(page1, this.callbackDelay, this.prompt, this.promptDelay, this.speaker),
|
new MessagePhase(page1, this.callbackDelay, this.prompt, this.promptDelay, this.speaker),
|
||||||
);
|
);
|
||||||
this.text = page0.trim();
|
this.text = page0.trim();
|
||||||
|
} else {
|
||||||
|
for (let p = 0; p < globalScene.getPlayerField().length; p++) {
|
||||||
|
this.text = this.text.split(repname[p]).join(pokename[p]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user