From 75c2ef728acdfc37a6c146947eea989a88284e8e Mon Sep 17 00:00:00 2001 From: Pawel Date: Wed, 7 Dec 2016 11:53:56 +0100 Subject: [PATCH] v7.1.2 - Spec change fix --- MaxDps.toc | 2 +- core.lua | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/MaxDps.toc b/MaxDps.toc index 49cee1f..8b726b3 100644 --- a/MaxDps.toc +++ b/MaxDps.toc @@ -1,6 +1,6 @@ ## Title: MaxDps ## Notes: Rotation helper framework. -## Version: 7.1.1 +## Version: 7.1.2 ## Author: Kaminaris ## Interface: 70100 ## SavedVariables: MaxDpsOptions diff --git a/core.lua b/core.lua index e86b331..631b04e 100644 --- a/core.lua +++ b/core.lua @@ -259,6 +259,7 @@ function MaxDps:PLAYER_REGEN_DISABLED() if self.db.global.onCombatEnter and not self.rotationEnabled then self:Print(self.Colors.Success .. 'Auto enable on combat!'); self:LoadModule(); + self:CheckSpecialization(); self:EnableRotation(); end end @@ -326,4 +327,10 @@ function MaxDps:LoadModule() self:Print(self.Colors.Info .. 'Finished Loading class module'); self.ModuleLoaded = true; +end + +function MaxDps:CheckSpecialization() + local mode = GetSpecialization(); + + self:EnableRotationModule(mode); end \ No newline at end of file -- 1.7.9.5