mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-09-23 15:03:24 +02:00
[Bug] Fix nicknames not showing up in battle (#6378)
This commit is contained in:
parent
842f0e88b0
commit
70b47945e8
@ -454,7 +454,7 @@ export abstract class Pokemon extends Phaser.GameObjects.Container {
|
||||
getNameToRender(useIllusion = true) {
|
||||
const illusion = this.summonData.illusion;
|
||||
const name = useIllusion ? (illusion?.name ?? this.name) : this.name;
|
||||
const nickname: string | undefined = useIllusion ? illusion?.nickname : this.nickname;
|
||||
const nickname: string | undefined = useIllusion ? (illusion?.nickname ?? this.nickname) : this.nickname;
|
||||
try {
|
||||
if (nickname) {
|
||||
return decodeURIComponent(escape(atob(nickname))); // TODO: Remove `atob` and `escape`... eventually...
|
||||
|
Loading…
Reference in New Issue
Block a user