Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Commit

Permalink
fix for lua error when :Enable() during vehicle exit while in combat
Browse files Browse the repository at this point in the history
  • Loading branch information
brittyazel committed Apr 21, 2020
1 parent 1f8dd81 commit 4e484c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Objects/EXITBTN.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ end
function EXITBTN:OnEvent(event, ...)
--reset button back to normal in the case of setting a tint on prior taxi trip
self.elements.IconFrameIcon:SetDesaturated(false)
self:Enable()
if not InCombatLockdown() then
self:Enable()
end

self:UpdateIcon()
self:UpdateObjectVisibility()
Expand Down

0 comments on commit 4e484c1

Please sign in to comment.