wowkit API
    Preparing search index...

    Interface FakeTarget

    The target of the player.

    interface FakeTarget {
        buffs: FakeAura[];
        castingSpell?: string;
        classification?: string;
        creatureType?: string;
        debuffs: FakeAura[];
        health: number;
        isAttackingPlayer?: boolean;
        isCastShielded?: boolean;
        isDead?: boolean;
        isEnemy: boolean;
        level: number;
        name: string;
        yards: number;
    }
    Index
    buffs: FakeAura[]
    castingSpell?: string

    The spell it is casting now.

    classification?: string
    creatureType?: string

    "Undead", "Mechanical"...; hidden when not given (as the client does for NPCs).

    debuffs: FakeAura[]

    Its debuffs; the player's own have sourceUnit "player".

    health: number

    Health in percent.

    isAttackingPlayer?: boolean

    It attacks the player (the player has aggro).

    isCastShielded?: boolean
    isDead?: boolean
    isEnemy: boolean

    An enemy (hostile); otherwise a friend.

    level: number
    name: string
    yards: number

    How far it is.