From f07b94107ae3f85623a6688566e3b1e99b78f5b3 Mon Sep 17 00:00:00 2001 From: Wlowscha <54003515+Wlowscha@users.noreply.github.com> Date: Mon, 11 Aug 2025 22:31:11 +0200 Subject: [PATCH] Fainted pkmn slots displaying correctly --- src/ui/party-ui-handler.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ui/party-ui-handler.ts b/src/ui/party-ui-handler.ts index 0f219d22e41..a9741e16abe 100644 --- a/src/ui/party-ui-handler.ts +++ b/src/ui/party-ui-handler.ts @@ -1871,13 +1871,13 @@ class PartySlot extends Phaser.GameObjects.Container { const offsetJa = currentLanguage === "ja"; const isItemManageMode = partyUiMode === PartyUiMode.MODIFIER_TRANSFER || partyUiMode === PartyUiMode.DISCARD; - const slotKey = this.isBenched + this.slotBgKey = this.isBenched ? "party_slot" : isItemManageMode && globalScene.currentBattle.double ? "party_slot_main_short" : "party_slot_main"; - this.slotBgKey = this.pokemon.hp ? slotKey : `${slotKey}${"_fnt"}`; - this.slotBg = globalScene.add.sprite(0, 0, slotKey, this.slotBgKey); + const fullSlotBgKey = this.pokemon.hp ? this.slotBgKey : `${this.slotBgKey}${"_fnt"}`; + this.slotBg = globalScene.add.sprite(0, 0, this.slotBgKey, fullSlotBgKey); this.slotBg.setOrigin(0); this.add(this.slotBg);