From 22ecbeafa57f40d91d172dfb66494ebd96f64fd8 Mon Sep 17 00:00:00 2001 From: shagu Date: Mon, 25 Jun 2018 20:26:32 +0200 Subject: [PATCH] libcast: avoid castbar events during scanning --- libs/libcast.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/libcast.lua b/libs/libcast.lua index 8741bb01..6ae1583b 100644 --- a/libs/libcast.lua +++ b/libs/libcast.lua @@ -116,7 +116,9 @@ libcast:SetScript("OnEvent", function() -- Fill database with player casts if event == "PLAYER_TARGET_CHANGED" then - this:TriggerEvents() + if not pfScanActive then + this:TriggerEvents() + end elseif event == "SPELLCAST_START" then this.db[player] = {cast = arg1, start = GetTime(), casttime = arg2, icon = nil, channel = nil, delay = 0} this:TriggerEvents()