Fix bug with types not being read correctly

This commit is contained in:
Flashfyre 2024-02-17 01:15:00 -05:00
parent dadc08d16e
commit 9ff2d3cbfe

View File

@ -626,7 +626,9 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
const teraType = this.getTeraType(); const teraType = this.getTeraType();
if (teraType != Type.UNKNOWN) if (teraType != Type.UNKNOWN)
types.push(teraType); types.push(teraType);
} else { }
if (!types.length || !includeTeraType) {
if (!ignoreOverride && this.summonData?.types) if (!ignoreOverride && this.summonData?.types)
this.summonData.types.forEach(t => types.push(t)); this.summonData.types.forEach(t => types.push(t));
else { else {