- Fix for Monk's Soothing Mist on Streamer Plugin.

This commit is contained in:
Tercio
2016-08-14 15:50:15 -03:00
parent f5ea6a706f
commit 76ccb4a73f
2 changed files with 10 additions and 5 deletions
@@ -998,6 +998,8 @@ local lastChannelSpell = ""
listener:SetScript ("OnEvent", function (self, event, ...)
--print (self, event, ...)
if (event == "UNIT_SPELLCAST_SENT") then
local unitID, spell, rank, target, id = ...
if (unitID == "player") then
@@ -1027,12 +1029,15 @@ listener:SetScript ("OnEvent", function (self, event, ...)
local unitID, spell, rank, id, spellID = ...
if (unitID == "player") then
id = lastchannelid
if (not CastsTable [id]) then
--print ("not", " - ", id, " - ", lastChannelSpell)
id = lastChannelSpell
if (not id or not CastsTable [id]) then
return
end
end
id = lastchannelid
CastsTable [id].Interrupted = true
ischanneling = false
lastchannelid = nil