mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user