diff --git a/src/data/battle-anims.ts b/src/data/battle-anims.ts index c446917d986..7aa419ca470 100644 --- a/src/data/battle-anims.ts +++ b/src/data/battle-anims.ts @@ -5,6 +5,7 @@ import type Pokemon from "../field/pokemon"; import { type nil, getFrameMs, getEnumKeys, getEnumValues, animationFileName } from "../utils/common"; import type { BattlerIndex } from "#enums/battler-index"; import { MoveId } from "#enums/move-id"; +import { SubstituteTag } from "./battler-tags"; import { isNullOrUndefined } from "../utils/common"; import Phaser from "phaser"; import { EncounterAnim } from "#enums/encounter-anims"; diff --git a/src/field/pokemon.ts b/src/field/pokemon.ts index b7f27be31b2..6a34d936a51 100644 --- a/src/field/pokemon.ts +++ b/src/field/pokemon.ts @@ -4108,6 +4108,9 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container { /**@overload */ getTag(tagType: BattlerTagType.GRUDGE): GrudgeTag | nil; + /** @overload */ + getTag(tagType: BattlerTagType.SUBSTITUTE): SubstituteTag | undefined; + /** @overload */ getTag(tagType: BattlerTagType): BattlerTag | undefined;