Check for caughtIcon, if false then move ribbon to the left.

pull/881/head
Jon Studders 2024-05-15 00:10:10 +01:00
parent 0584ca0a4e
commit a76435939c
1 changed files with 3 additions and 0 deletions

View File

@ -274,6 +274,9 @@ export default class BattleInfo extends Phaser.GameObjects.Container {
this.ownedIcon.setTint(0x808080);
if(pokemon.scene.gameData.starterData[pokemon.species.getRootSpeciesId()].classicWinCount > 0 && pokemon.scene.gameData.starterData[pokemon.species.getRootSpeciesId(true)].classicWinCount > 0) {
if (!dexEntry.caughtAttr) {
this.championRibbon.setPositionRelative(this.nameText, 0, 11.75);
}
this.championRibbon.setVisible(true);
}