From 84a1bd10527492a3fdad2bd9c5e431f109b50579 Mon Sep 17 00:00:00 2001 From: shagu Date: Fri, 19 Jul 2019 16:35:43 +0200 Subject: [PATCH] api: don't set hit insets during combat lockdown --- api/api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/api.lua b/api/api.lua index eaa7f208..15ef49f4 100644 --- a/api/api.lua +++ b/api/api.lua @@ -825,7 +825,7 @@ function pfUI.api.CreateBackdrop(f, inset, legacy, transp, backdropSetting) f:SetBackdropBorderColor(er, eg, eb , ea) else -- increase clickable area if available - if f.SetHitRectInsets then + if f.SetHitRectInsets and ( not InCombatLockdown or not InCombatLockdown()) then f:SetHitRectInsets(-border,-border,-border,-border) end