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
@@ -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++;
|
||||
|
||||
|
||||
Reference in new issue
Block a user