From 9ff2d3cbfe22deb97ad4db7892f4f1f19241054e Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Sat, 17 Feb 2024 01:15:00 -0500 Subject: [PATCH] Fix bug with types not being read correctly --- src/pokemon.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pokemon.ts b/src/pokemon.ts index 6465a683e4c..7c62b166b1a 100644 --- a/src/pokemon.ts +++ b/src/pokemon.ts @@ -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 {