mirror of
https://github.com/brues-code/SuperCleveRoidMacros.git
synced 2026-09-16 03:38:00 +00:00
Merge pull request #39 from jrc13245/claude/improve-combodurations-01GHh5y6dXtxNhoizDK8bSw3
CRITICAL: Add confirmation to DoCast hook
This commit is contained in:
+15
-4
@@ -540,20 +540,31 @@ if CleveRoids.DoCast then
|
||||
CleveRoids.DoCast = function(msg)
|
||||
-- Extract spell name from message
|
||||
local spellName = msg
|
||||
|
||||
|
||||
-- Remove conditionals if present
|
||||
local condEnd = string.find(msg, "]")
|
||||
if condEnd then
|
||||
spellName = string.sub(msg, condEnd + 1)
|
||||
end
|
||||
|
||||
|
||||
spellName = CleveRoids.Trim(spellName)
|
||||
|
||||
|
||||
-- Track combo points if it's a scaling spell
|
||||
if CleveRoids.IsComboScalingSpell(spellName) then
|
||||
CleveRoids.TrackComboPointCast(spellName)
|
||||
|
||||
-- Confirm the tracking - DoCast only fires on actual casts
|
||||
if CleveRoids.ComboPointTracking[spellName] then
|
||||
CleveRoids.ComboPointTracking[spellName].confirmed = true
|
||||
if CleveRoids.debug then
|
||||
DEFAULT_CHAT_FRAME:AddMessage(
|
||||
string.format("|cff00ff00[Confirmed]|r %s tracking confirmed (DoCast)",
|
||||
spellName)
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
-- Call original function
|
||||
return originalDoCast(msg)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user