Ensure pokemon names are replaced when there is no separator

This commit is contained in:
Sirz Benjie 2025-05-18 00:09:38 -05:00
parent e0e307c4d4
commit 314bcd22ac
No known key found for this signature in database
GPG Key ID: 4A524B4D196C759E

View File

@ -47,6 +47,10 @@ export class MessagePhase extends Phase {
new MessagePhase(page1, this.callbackDelay, this.prompt, this.promptDelay, this.speaker),
);
this.text = page0.trim();
} else {
for (let p = 0; p < globalScene.getPlayerField().length; p++) {
this.text = this.text.split(repname[p]).join(pokename[p]);
}
}
}