Quantcast

v7.2.5.4 - Custom rotation bug fixes

Pawel [07-28-17 - 04:10]
v7.2.5.4 - Custom rotation bug fixes
Filename
MaxDps.toc
custom.lua
diff --git a/MaxDps.toc b/MaxDps.toc
index 564235b..0aa359b 100644
--- a/MaxDps.toc
+++ b/MaxDps.toc
@@ -1,6 +1,6 @@
 ## Title: MaxDps
 ## Notes: Rotation helper framework.
-## Version: 7.2.5.3
+## Version: 7.2.5.4
 ## Author: Kaminaris
 ## Interface: 70200
 ## SavedVariables: MaxDpsOptions
diff --git a/custom.lua b/custom.lua
index 5281658..1c8cf66 100644
--- a/custom.lua
+++ b/custom.lua
@@ -326,7 +326,7 @@ function MaxDps:LoadCustomRotations()
 	end

 	for k, rotation in pairs(self.db.global.customRotations) do
-		if rotation.enabled then
+		if rotation.enabled and rotation.class ~= nil and rotation.spec ~= nil then
 			local fn = MaxDps.LoadFunction(rotation.fn);
 			if not self.CustomRotations[rotation.class] then
 				self.CustomRotations[rotation.class] = {}