Make getTypes ignore transform when ignoring overrides (#1976)

This commit is contained in:
Xavion3 2024-06-09 11:08:30 +10:00 committed by GitHub
parent f0a826b8f4
commit 07f0a67c78
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -857,11 +857,11 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
if (!ignoreOverride && this.summonData?.types) {
this.summonData.types.forEach(t => types.push(t));
} else {
const speciesForm = this.getSpeciesForm();
const speciesForm = this.getSpeciesForm(ignoreOverride);
types.push(speciesForm.type1);
const fusionSpeciesForm = this.getFusionSpeciesForm();
const fusionSpeciesForm = this.getFusionSpeciesForm(ignoreOverride);
if (fusionSpeciesForm) {
if (fusionSpeciesForm.type2 !== null && fusionSpeciesForm.type2 !== speciesForm.type1) {
types.push(fusionSpeciesForm.type2);