/
local filter = bit.bor(COMBATLOG_OBJECT_AFFILIATION_OUTSIDER, COMBATLOG_OBJECT_REACTION_FRIENDLY) |
if type == "SPELL_AURA_APPLIED" and destGUID == UnitGUID("player") and CombatLog_Object_IsA(sourceFlags, filter) then |
local spellId, spellName, spellSchool = select(9, ...) |
SendChatMessage("thanks "..sourceName.." for their "..spellName) |
SendChatMessage("thanks "..sourceName.." for their "..spellName, "EMOTE") |
end |
end); |
t4bf:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED") |