Zidras / DBM-Warmane

DBM for Warmane (Icecrown, Lordaeron, Frostmourne, Onyxia)
https://discord.gg/CyVWDWS
146 stars 61 forks source link

[REQUEST] Please add option for Blood Beast swing hit #197

Open anzz1 opened 5 months ago

anzz1 commented 5 months ago

Is your feature request related to a problem? Please describe.

Add option to inform about Blood Beast swing hits on Deathbringer Saurfang so raid can wake up.

Desired solution

Something like this, but modified for DBM

do
    local f = CreateFrame("Frame")
    f:SetScript("OnEvent", function(_, _, _, cEvent, _, sourceName, _, _, destName)
        if (cEvent == "SWING_DAMAGE" and sourceName == "Blood Beast" and IsInRaid()) then
            SendChatMessage(">> Saurfang Blood Power generated, Blood Beast swing hit: " .. destName .. " <<", "RAID")
        end
    end)
    f:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
end

Describe alternatives you've considered

No response

Anything else?

No response

Zidras commented 5 months ago

Thank you for the suggestion, I can implement it, but never as a chat spam. SA however looks like a viable approach