WoWInterface SVN Thanks4Buff

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 4 to Rev 5
    Reverse comparison

Rev 4 → Rev 5

trunk/Thanks4Buff.lua
1,9 → 1,10
local t4bf = CreateFrame('Frame');
t4bf:SetScript('OnEvent', function(self, event, ...)
local timestamp, type, sourceGUID, sourceName, sourceFlags, destGUID, destName, destFlags = select(1, ...)
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, ...)
--DEFAULT_CHAT_FRAME:AddMessage("Working # 1")
local timestamp, eventType, sourceGUID, sourceName, sourceFlags, destGUID, destName, destFlags = select(1, ...)
local filter = bit.bor(COMBATLOG_OBJECT_AFFILIATION_OUTSIDER, COMBATLOG_OBJECT_REACTION_FRIENDLY, COMBATLOG_OBJECT_CONTROL_MASK, COMBATLOG_OBJECT_TYPE_MASK)
if eventType == "SPELL_AURA_APPLIED" and destGUID == UnitGUID("player") and (CombatLog_Object_IsA(sourceFlags, filter) == 1) then
local spellId, spellName, spellSchool = select(9, ...)
SendChatMessage("thanks "..sourceName.." for their "..spellName..".", "EMOTE")
end
end);