World of Warcraft Forever API · C_CombatText.md, for your AI
C_CombatText
3 functions, 1 events, as Blizzard documents them for Forever 1.60.1 (70959).
Making an addon with an AI? Tell it: Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it. It checks every call against this API before you try it in the game, then publishes it here. How it works.
Functions
C_CombatText.GetActiveUnit
unitTarget = C_CombatText.GetActiveUnit()
May return nothing.
Returns
unitTarget | string |
|---|
C_CombatText.GetCurrentEventInfo
C_CombatText.GetCurrentEventInfo()
Its returns can be secret values (in some instances and fights): guard them before any arithmetic.
C_CombatText.SetActiveUnit
C_CombatText.SetActiveUnit(unitToken)
Arguments
unitToken | UnitToken |
|---|
Events
COMBAT_TEXT_UPDATE
combatTextType | cstring |
|---|