Fix logic for checking starter attributes
This commit is contained in:
1 parent
b4f2700a59
commit
83b85acd8a
3 files changed
+5
-4
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user