From 8211f8cb4973b407aad601c8ca7f7d9e09cddc6c Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 12 May 2019 17:22:27 +0200 Subject: [PATCH] libdebuff: check lastspell before accessing it --- libs/libdebuff.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/libdebuff.lua b/libs/libdebuff.lua index 79b37fbb..3e38f41b 100644 --- a/libs/libdebuff.lua +++ b/libs/libdebuff.lua @@ -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