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.

This commit is contained in:
Parnic
2014-11-07 00:41:32 -06:00
parent d9571c6636
commit 63462ae340

View File

@ -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