mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-21 06:49:35 +02:00
Update src/field/pokemon.ts
Co-authored-by: PigeonBar <56974298+PigeonBar@users.noreply.github.com>
This commit is contained in:
parent
82fd77e6aa
commit
d82b217f0c
@ -1259,7 +1259,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// the type added to Pokemon from moves like Forest's Curse or Trick Or Treat
|
// the type added to Pokemon from moves like Forest's Curse or Trick Or Treat
|
||||||
if (this.summonData && this.summonData.addedType && !types.includes(this.summonData.addedType)) {
|
if (!ignoreOverride && this.summonData && this.summonData.addedType && !types.includes(this.summonData.addedType)) {
|
||||||
types.push(this.summonData.addedType);
|
types.push(this.summonData.addedType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user