mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-06 23:49:26 +02:00
[Bug] Fix grey caught indicator for genderless pokemon (#6095)
Fix grey caught indicator for genderless pokemon
This commit is contained in:
parent
374fb9613a
commit
6e6f9da1fd
@ -558,7 +558,9 @@ export abstract class Pokemon extends Phaser.GameObjects.Container {
|
||||
|
||||
getDexAttr(): bigint {
|
||||
let ret = 0n;
|
||||
ret |= this.gender !== Gender.FEMALE ? DexAttr.MALE : DexAttr.FEMALE;
|
||||
if (this.gender !== Gender.GENDERLESS) {
|
||||
ret |= this.gender !== Gender.FEMALE ? DexAttr.MALE : DexAttr.FEMALE;
|
||||
}
|
||||
ret |= !this.shiny ? DexAttr.NON_SHINY : DexAttr.SHINY;
|
||||
ret |= this.variant >= 2 ? DexAttr.VARIANT_3 : this.variant === 1 ? DexAttr.VARIANT_2 : DexAttr.DEFAULT_VARIANT;
|
||||
ret |= globalScene.gameData.getFormAttr(this.formIndex);
|
||||
|
Loading…
Reference in New Issue
Block a user