From 63462ae340bdbf9edb5aed5177bcccc8ae4302b7 Mon Sep 17 00:00:00 2001 From: Parnic Date: Fri, 7 Nov 2014 00:41:32 -0600 Subject: [PATCH] Fixed being able to cancel a buff when the frame's alpha was zero. Unfortunately the mouse click is still eaten, but at least your buffs don't pop off. --- modules/PlayerInfo.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/PlayerInfo.lua b/modules/PlayerInfo.lua index 1e46848..a0b0de6 100644 --- a/modules/PlayerInfo.lua +++ b/modules/PlayerInfo.lua @@ -62,6 +62,10 @@ StaticPopupDialogs["ICEHUD_BUFF_DISMISS_UNAVAILABLE"] = -- playerinfo buffclick event handle function PlayerInfo.prototype:BuffClick(this,event) + if not self:AllowMouseBuffInteraction(this) then + return + end + -- We want to catch the rightbutton click. -- We also need to check for combat lockdown. The api won't allow cancelling during combat lockdown. if( event == "RightButton" ) and not InCombatLockdown() then