Fix logic for checking starter attributes

This commit is contained in:
Flashfyre committed 2023-11-13 08:20:31 -05:00
1 parent b4f2700a59
commit 83b85acd8a
3 files changed
+5 -4

No files matched your search

+2 -1
View File
@@ -131,7 +131,8 @@ export default class BattleInfo extends Phaser.GameObjects.Container {
if (!this.player) {
const dexEntry = pokemon.scene.gameData.dexData[pokemon.species.speciesId];
this.ownedIcon.setVisible(!!dexEntry.caughtAttr);
if (!(dexEntry.caughtAttr & pokemon.getDexAttrs()))
const dexAttr = pokemon.getDexAttr();
if ((dexEntry.caughtAttr & dexAttr) < dexAttr)
this.ownedIcon.setTint(0x808080);
}