[Bug][UI] Fix ribbon and status effect overlap (#6453)

This commit is contained in:
Fabi 2025-08-31 03:07:50 +02:00 committed by GitHub
parent 5c22d9ccac
commit 929f721ee0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -115,6 +115,9 @@ export class EnemyBattleInfo extends BattleInfo {
globalScene.gameData.starterData[pokemon.species.getRootSpeciesId()].classicWinCount > 0 && globalScene.gameData.starterData[pokemon.species.getRootSpeciesId()].classicWinCount > 0 &&
globalScene.gameData.starterData[pokemon.species.getRootSpeciesId(true)].classicWinCount > 0 globalScene.gameData.starterData[pokemon.species.getRootSpeciesId(true)].classicWinCount > 0
) { ) {
// move the ribbon to the left if there is no owned icon
const championRibbonX = this.ownedIcon.visible ? 8 : 0;
this.championRibbon.setPositionRelative(this.nameText, championRibbonX, 11.75);
this.championRibbon.setVisible(true); this.championRibbon.setVisible(true);
} }