wowkit API
    Preparing search index...

    Class PlayerService

    Index
    • The name of the spell being cast now; undefined when none, or when the client hides it.

      Returns string | undefined

    • Seconds left on the cast or channel in progress; 0 when none or when the client hides it.

      Returns number

    • The name of the spell being channeled now; undefined when none, or when the client hides it.

      Returns string | undefined

    • The player's class token ("PRIEST").

      Returns string | undefined

    • The item ID in an equipment slot; undefined when the slot is empty.

      Parameters

      • slot: number

      Returns number | undefined

    • Seconds between two Auto Shots; undefined when hidden (in combat).

      Returns number | undefined

    • The "Speed" of the ranged weapon from its tooltip; undefined when not found.

      Returns number | undefined

    • Is the player eating or drinking (a food or drink buff)?

      Returns boolean

    • Is a weapon (not a shield or a held item) in the off-hand slot?

      Returns boolean

    • The forms on the stance bar (druid forms, warrior stances): each spell, and whether it is active (undefined: hidden).

      Returns { isActive: boolean | undefined; spellId: number }[]

    • Combo points: the highest readable of the player's power (modern) and the points on the target (Classic); one source may read 0 while the other has the real value. Undefined when neither is readable.

      Returns number | undefined