Update src/field/pokemon.ts

Co-authored-by: PigeonBar <56974298+PigeonBar@users.noreply.github.com>
This commit is contained in:
Mumble 2024-10-23 15:25:14 -07:00 committed by NightKev
parent 82fd77e6aa
commit d82b217f0c

View File

@ -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);
} }