Skip to content

Commit

Permalink
Update src/field/pokemon.ts
Browse files Browse the repository at this point in the history
Co-authored-by: PigeonBar <[email protected]>
  • Loading branch information
frutescens and PigeonBar authored Oct 23, 2024
1 parent 539b394 commit 086b16c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/field/pokemon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1260,7 +1260,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
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);
}

Expand Down

0 comments on commit 086b16c

Please sign in to comment.