Fix type icon type not updating when types are changed

pull/34/head
Flashfyre 2024-04-04 13:30:49 -04:00
parent 0f7b55c328
commit 3774b6e214
1 changed files with 1 additions and 0 deletions

View File

@ -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)