mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-18 06:12:19 +02:00
merge
This commit is contained in:
parent
15fbd9a54f
commit
f4c0ac6575
@ -1900,7 +1900,9 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
||||
* @param {boolean} fakeName - Whether we want the fake name or the real name of the Pokemon (for Illusion ability).
|
||||
*/
|
||||
getName(fakeName: boolean = false): string {
|
||||
return (!fakeName && this.battleData?.illusion.active && this.battleData?.illusion.basePokemon) ? this.battleData?.illusion.basePokemon.name : this.name;
|
||||
return (!fakeName && this.battleData?.illusion.active && this.battleData?.illusion.basePokemon)
|
||||
? this.battleData?.illusion.basePokemon.name
|
||||
: this.name;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user