Quantcast

v7.1.2 - Spec change fix

Pawel [12-07-16 - 10:53]
v7.1.2 - Spec change fix
Filename
MaxDps.toc
core.lua
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