mirror of
https://github.com/brues-code/SuperCleveRoidMacros.git
synced 2026-09-16 03:38:00 +00:00
fix quotational spells or items used with validatecooldown
This commit is contained in:
+8
-1
@@ -538,7 +538,14 @@ end
|
||||
function CleveRoids.ValidateCooldown(args, ignoreGCD)
|
||||
if not args then return false end
|
||||
if type(args) ~= "table" then
|
||||
args = {name = args}
|
||||
-- Normalize the spell name by replacing underscores with spaces
|
||||
local normalized = string.gsub(args, "_", " ")
|
||||
args = {name = normalized}
|
||||
else
|
||||
-- Also normalize if it's already a table
|
||||
if args.name then
|
||||
args.name = string.gsub(args.name, "_", " ")
|
||||
end
|
||||
end
|
||||
|
||||
local expires = CleveRoids.GetCooldown(args.name, ignoreGCD)
|
||||
|
||||
Reference in New Issue
Block a user