From 5c9004de04029ab8b4c08d29bd5c425c86d9626b Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Sun, 10 Aug 2014 23:18:24 +0200 Subject: [PATCH] Force disable HabeebIt if it's loaded --- BonusRollPreview.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/BonusRollPreview.lua b/BonusRollPreview.lua index 0c02a32..70cc842 100644 --- a/BonusRollPreview.lua +++ b/BonusRollPreview.lua @@ -342,6 +342,12 @@ function Container:SPELL_CONFIRMATION_TIMEOUT() end function Container:PLAYER_LOGIN() + local oldName = 'HabeebIt' + if(IsAddOnLoaded(oldName)) then + DisableAddOn(oldName) + print('|cffff8080BonusRollPreview:|r', string.format(L['You\'re running a conflicting addon (%s), type /reload to resolve'], oldName)) + end + local ScrollChild = CreateFrame('Frame', nil, self) ScrollChild:SetHeight(1) -- Completely ignores this value, bug? self.ScrollChild = ScrollChild -- 1.7.9.5