From 649d13ed2764d95cf6dc7ce3821ff357f9c07de7 Mon Sep 17 00:00:00 2001 From: pepopo978 <149287158+pepopo978@users.noreply.github.com> Date: Wed, 20 Aug 2025 17:07:20 -0700 Subject: [PATCH] Update README.md --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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))