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

Commit 4e484c1

Browse files
committed
fix for lua error when :Enable() during vehicle exit while in combat
1 parent 1f8dd81 commit 4e484c1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Objects/EXITBTN.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ end
6666
function EXITBTN:OnEvent(event, ...)
6767
--reset button back to normal in the case of setting a tint on prior taxi trip
6868
self.elements.IconFrameIcon:SetDesaturated(false)
69-
self:Enable()
69+
if not InCombatLockdown() then
70+
self:Enable()
71+
end
7072

7173
self:UpdateIcon()
7274
self:UpdateObjectVisibility()

0 commit comments

Comments
 (0)