Skip to content
Permalink
Browse files

Removed server from Spells announce.

  • Loading branch information...
Wetxius committed Oct 19, 2014
1 parent 8c0847c commit 8ee91c1590b23ee2f3a84af86addff1890869c01
@@ -9,7 +9,7 @@ frame:SetScript("OnEvent", function(self, event, _, subEvent, _, _, srcName, _,
if not IsInGroup() or InCombatLockdown() or not subEvent or not spellID or not srcName then return end
if not UnitInRaid(srcName) and not UnitInParty(srcName) then return end

local srcName = format(srcName:gsub("%-[^|]+", ""))
local srcName = srcName:gsub("%-[^|]+", "")
if subEvent == "SPELL_CAST_SUCCESS" then
-- Feasts
if C.announcements.feasts and (spellID == 126492 or spellID == 126494) then
@@ -20,7 +20,7 @@ frame:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
frame:SetScript("OnEvent", function(_, event, _, subEvent, _, _, buffer, _, _, _, player, _, _, spell, ...)
for key, value in pairs(spells) do
if spell == key and value == true and player == T.name and buffer ~= T.name and subEvent == "SPELL_CAST_SUCCESS" then
SendChatMessage(L_ANNOUNCE_SS_THANKS..GetSpellLink(spell)..", "..format(buffer:gsub("%-[^|]+", "")), "WHISPER", nil, buffer)
SendChatMessage(L_ANNOUNCE_SS_THANKS..GetSpellLink(spell)..", "..buffer:gsub("%-[^|]+", ""), "WHISPER", nil, buffer)
print(GetSpellLink(spell)..L_ANNOUNCE_SS_RECEIVED..buffer)
end
end
@@ -12,6 +12,8 @@ frame:SetScript("OnEvent", function(self, _, ...)
local _, _, difficultyID = GetInstanceInfo()
if difficultyID == 0 or event ~= "SPELL_CAST_SUCCESS" then return end

if sourceName then sourceName = sourceName:gsub("%-[^|]+", "") end
if destName then destName = destName:gsub("%-[^|]+", "") end
if C.announcements.spells_from_all == true and not (sourceGUID == UnitGUID("player") and sourceName == T.name) then
if not sourceName then return end

0 comments on commit 8ee91c1

Please sign in to comment.
You can’t perform that action at this time.