diff --git a/README.md b/README.md index 22ffe7a..2a5fd47 100644 --- a/README.md +++ b/README.md @@ -142,6 +142,18 @@ Cursive data can be accessed in other addons You can get raw curse data using `Cursive.curses:GetCurseData(spellName, guid)` +Curse data is a table with the following structure: +``` +{ + rank = int, + duration = float, + start = float, + spellID = int, + targetGuid = int, + currentPlayer = bool, +} +``` + Here's an example that gets the time left on Corruption on the current target: ``` /run _, guid = UnitExists("target"); local data = Cursive.curses:GetCurseData("Corruption", guid); print(Cursive.curses:TimeRemaining(data))