mirror of
https://github.com/brues-code/SuperCleveRoidMacros.git
synced 2026-09-16 03:38:00 +00:00
add pcall to more nampower functions
This commit is contained in:
+5
-1
@@ -1177,7 +1177,11 @@ end
|
||||
function API.GetCastInfo()
|
||||
-- Use native function if available (v2.18+)
|
||||
if GetCastInfo then
|
||||
return GetCastInfo()
|
||||
local ok, result = pcall(GetCastInfo)
|
||||
if ok then
|
||||
return result
|
||||
end
|
||||
-- If pcall failed, fall through to fallback
|
||||
end
|
||||
|
||||
-- Fallback: use GetCurrentCastingInfo (less detailed)
|
||||
|
||||
Reference in New Issue
Block a user