# C_CombatText: World of Warcraft Forever API

Forever 1.60.1 (70959), Interface 16001, Lua 5.1, from Blizzard's own API documentation. Page: https://wowaddons.gg/forever-api/C_CombatText

## Functions

### C_CombatText.GetActiveUnit

```lua
unitTarget = C_CombatText.GetActiveUnit()
```

May return nothing.

Returns:
- `unitTarget`: string

### C_CombatText.GetCurrentEventInfo

```lua
C_CombatText.GetCurrentEventInfo()
```

Its returns can be secret values (in some instances and fights): guard them before any arithmetic.

### C_CombatText.SetActiveUnit

```lua
C_CombatText.SetActiveUnit(unitToken)
```

Arguments:
- `unitToken`: UnitToken

## Events

### COMBAT_TEXT_UPDATE

Payload, after the event's name:
- `combatTextType`: cstring

---
Make an addon with your 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."
