diff Shopping.lua @ 179:eec8032ba9df v84

addon should close automatically when entering combat now
author yellowfive
date Thu, 13 Feb 2020 13:21:44 -0800
parents 44ce007189e0
children
line wrap: on
line diff
--- a/Shopping.lua	Sun Jan 26 12:37:26 2020 -0800
+++ b/Shopping.lua	Thu Feb 13 13:21:44 2020 -0800
@@ -60,6 +60,8 @@
 
 function Amr:ShowShopWindow()
 
+	if InCombatLockdown() then return end
+	
 	if not _frameShop then
 		_frameShop = AceGUI:Create("AmrUiFrame")
 		_frameShop:SetStatusTable(Amr.db.profile.shopWindow) -- window position is remembered in db