Fix bug with types not being read correctly

pull/16/head
Flashfyre 2024-02-17 01:15:00 -05:00
parent dadc08d16e
commit 9ff2d3cbfe
1 changed files with 3 additions and 1 deletions

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 {