Add necessary overload for getTag

This commit is contained in:
Sirz Benjie 2025-06-09 21:36:34 -05:00
parent b9fc6c98f6
commit 61f069e7ff
No known key found for this signature in database
GPG Key ID: 38AC42D68CF5E138
2 changed files with 4 additions and 0 deletions

View File

@ -5,6 +5,7 @@ import type Pokemon from "../field/pokemon";
import { type nil, getFrameMs, getEnumKeys, getEnumValues, animationFileName } from "../utils/common"; import { type nil, getFrameMs, getEnumKeys, getEnumValues, animationFileName } from "../utils/common";
import type { BattlerIndex } from "#enums/battler-index"; import type { BattlerIndex } from "#enums/battler-index";
import { MoveId } from "#enums/move-id"; import { MoveId } from "#enums/move-id";
import { SubstituteTag } from "./battler-tags";
import { isNullOrUndefined } from "../utils/common"; import { isNullOrUndefined } from "../utils/common";
import Phaser from "phaser"; import Phaser from "phaser";
import { EncounterAnim } from "#enums/encounter-anims"; import { EncounterAnim } from "#enums/encounter-anims";

View File

@ -4108,6 +4108,9 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
/**@overload */ /**@overload */
getTag(tagType: BattlerTagType.GRUDGE): GrudgeTag | nil; getTag(tagType: BattlerTagType.GRUDGE): GrudgeTag | nil;
/** @overload */
getTag(tagType: BattlerTagType.SUBSTITUTE): SubstituteTag | undefined;
/** @overload */ /** @overload */
getTag(tagType: BattlerTagType): BattlerTag | undefined; getTag(tagType: BattlerTagType): BattlerTag | undefined;