From 2aa38929bd342ab3abb2234addf4d7fdf1545468 Mon Sep 17 00:00:00 2001 From: AJ Fontaine Date: Fri, 21 Feb 2025 16:51:35 -0500 Subject: [PATCH] Move trainer mon tera type generation to genPartyMember func --- src/field/trainer.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/field/trainer.ts b/src/field/trainer.ts index 10991226dba..5c5b75daf51 100644 --- a/src/field/trainer.ts +++ b/src/field/trainer.ts @@ -394,6 +394,10 @@ export default class Trainer extends Phaser.GameObjects.Container { this.teraIndexes.push(index + 1); // If it's Shedinja and it's set to tera to something other than Bug, set tera index to the next mon } + if (this.config.specialtyType !== Type.UNKNOWN) { + ret!.teraType = this.config.specialtyType; + } + return ret!; // TODO: is this bang correct? }