mirror of
https://github.com/brues-code/SuperCleveRoidMacros.git
synced 2026-09-16 03:38:00 +00:00
remove gmatch and match polyfill and fix reactive surprise attack
This commit is contained in:
+2
-1
@@ -7837,7 +7837,8 @@ function CleveRoids.ResolveRaidMarkUnit(unitStr)
|
||||
if not unitStr then return nil end
|
||||
local namedIdx = CleveRoids.RAID_MARKS[unitStr]
|
||||
if namedIdx then return "mark" .. namedIdx end
|
||||
local n = tonumber(string.match(unitStr, "^mark(%d+)$"))
|
||||
local _, _, markNum = string.find(unitStr, "^mark(%d+)$")
|
||||
local n = markNum and tonumber(markNum)
|
||||
if n and n >= 1 and n <= 8 then return "mark" .. n end
|
||||
return nil
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user