Update README.md

This commit is contained in:
pepopo978
2025-08-20 17:07:20 -07:00
committed by GitHub
parent f9098585cc
commit 649d13ed27
+12
View File
@@ -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))