From 6e7608c6de7ac07bdc377ee08b3fd7f985d4bca5 Mon Sep 17 00:00:00 2001 From: Pawel Date: Fri, 28 Jul 2017 06:10:20 +0200 Subject: [PATCH] v7.2.5.4 - Custom rotation bug fixes --- MaxDps.toc | 2 +- custom.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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] = {} -- 1.7.9.5