libdebuff: check lastspell before accessing it

This commit is contained in:
shagu
2019-05-12 17:22:27 +02:00
parent 96ad072478
commit 8211f8cb49
+1 -1
View File
@@ -213,7 +213,7 @@ libdebuff:SetScript("OnEvent", function()
-- instant removal of the pending spell
libdebuff:RemovePending()
return
elseif effect and lastspell.start_old and lastspell.effect == effect then
elseif effect and lastspell and lastspell.start_old and lastspell.effect == effect then
-- late removal of debuffs (e.g hunter arrows as they hit late)
libdebuff:RevertLastAction()
return