From 3774b6e214301791eb932c68fa89d8bdfbd00ff2 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Thu, 4 Apr 2024 13:30:49 -0400 Subject: [PATCH] Fix type icon type not updating when types are changed --- src/ui/battle-info.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ui/battle-info.ts b/src/ui/battle-info.ts index d521a81a265..2e45efca072 100644 --- a/src/ui/battle-info.ts +++ b/src/ui/battle-info.ts @@ -333,6 +333,7 @@ export default class BattleInfo extends Phaser.GameObjects.Container { } const types = pokemon.getTypes(true); + this.type1Icon.setTexture(`pbinfo_${this.player ? 'player' : 'enemy'}_type${types.length > 1 ? '1' : ''}`); this.type1Icon.setFrame(Type[types[0]].toLowerCase()); this.type2Icon.setVisible(types.length > 1); if (types.length > 1)