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 -2
View File
@@ -356,7 +356,7 @@ export class GameData {
setPokemonSeen(pokemon: Pokemon, incrementCount: boolean = true): void {
const dexEntry = this.dexData[pokemon.species.speciesId];
dexEntry.seenAttr |= pokemon.getDexAttrs();
dexEntry.seenAttr |= pokemon.getDexAttr();
if (incrementCount)
dexEntry.seenCount++;
}
@@ -369,7 +369,7 @@ export class GameData {
return new Promise<void>((resolve) => {
const dexEntry = this.dexData[species.speciesId];
const caughtAttr = dexEntry.caughtAttr;
dexEntry.caughtAttr |= pokemon.getDexAttrs();
dexEntry.caughtAttr |= pokemon.getDexAttr();
if (incrementCount)
dexEntry.seenCount++;