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();
if (teraType != Type.UNKNOWN)
types.push(teraType);
} else {
}
if (!types.length || !includeTeraType) {
if (!ignoreOverride && this.summonData?.types)
this.summonData.types.forEach(t => types.push(t));
else {