mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-04 15:32:18 +02:00
Add necessary overload for getTag
This commit is contained in:
parent
b9fc6c98f6
commit
61f069e7ff
@ -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";
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user