
Сообщение от
Top Hunter EU
требую сделать так чтоб на циркле не работал этот скрипт на швд
if not frame then
frame = CreateFrame("Frame")
end
local onEvent = function(self, event, ...)
if (event == "COMBAT_LOG_EVENT_UNFILTERED") then
local timestamp, type, sourceGUID, sourceName, sourceFlags, destGUID, destName, destFlags = select(1, ...)
if (type == "SPELL_CAST_SUCCESS") then
local spellId, spellName, spellSchool = select(9, ...)
if spellName == "Ослепление" or spellName == "Покаяние" or spellName== "Дезориентирующий выстрел" and UnitName("player") == destName then
TargetUnit(arg4)
CastSpellByName ("Слово тьмы: Смерть")
end
end
end
end
frame:SetScript("OnEvent", onEvent)
frame:UnregisterEvent("COMBAT_LOG_EVENT_UNFILTERED ")
frame:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
frame:UnregisterEvent("UNIT_SPELLCAST_SUCCEEDED")