add GetCurseData function

This commit is contained in:
pepopo978
2025-06-20 10:57:26 -07:00
parent 7e81cd7558
commit cd1b47ec45
3 changed files with 26 additions and 3 deletions
+11
View File
@@ -438,6 +438,17 @@ function curses:HasAnyCurse(guid)
return nil
end
function curses:GetCurseData(spellName, guid)
-- convert to lowercase and remove rank
local lowercaseSpellNameNoRank = Cursive.utils.GetLowercaseSpellNameNoRank(spellName)
if curses.guids[guid] and curses.guids[guid][lowercaseSpellNameNoRank] then
return curses.guids[guid][lowercaseSpellNameNoRank]
end
return nil
end
function curses:HasCurse(lowercaseSpellNameNoRank, targetGuid, minRemaining)
if not minRemaining then
minRemaining = 0 -- default to 0