From a142ebdd3830e395e0fb36ce538a0c8b1fda5407 Mon Sep 17 00:00:00 2001 From: pepopo978 Date: Mon, 6 Apr 2026 10:45:39 -0700 Subject: [PATCH] clarify functions --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 80fc093..c129f24 100644 --- a/README.md +++ b/README.md @@ -148,6 +148,8 @@ Cursive data can be accessed in other addons You can check if curse is active with `Cursive.curses:HasCurse(lowercaseSpellNameNoRank, targetGuid, minRemaining, malediction)` +For example `Cursive.curses:HasCurse("corruption", GetUnitGUID("target"), 3, false)` or `Cursive.curses:HasCurse(Cursive.utils.GetLowercaseSpellNameNoRank("Corruption (Rank 2)"), GetUnitGUID("target"), 3, false)` will check if Corruption is on the current target with at least 3 seconds remaining. It won't specifically check for rank 2 just wanted to show that HasCurse only works with the lowercase spell name without rank. + You can get raw curse data using `Cursive.curses:GetCurseData(spellName, guid)`