Skip to content

Custom functions does not work #90

@fenrirjk

Description

@fenrirjk

To enable custom functions, I had to apply this patch:

 GUI.lua   | 5 +++--
 Start.lua | 5 +++--
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/GUI.lua b/GUI.lua
index 8e73960..f963c7a 100644
--- a/GUI.lua
+++ b/GUI.lua
@@ -716,8 +716,9 @@ function MPOWA:Remove()
 				self.auras[val["buffname"]] = {}
 			end
 			tinsert(self.auras[val["buffname"]], cat)
-			
-			if (val["inverse"] or val["cooldown"]) and val["buffname"] ~= "unitpower" then
+
+            f = val["funct"]
+			if (f or val["inverse"] or val["cooldown"]) and val["buffname"] ~= "unitpower" then
 				self.NeedUpdate[cat] = true
 			end
 		end
diff --git a/Start.lua b/Start.lua
index 2eceb59..780e6eb 100644
--- a/Start.lua
+++ b/Start.lua
@@ -169,8 +169,9 @@ function MPOWA:Init()
 				self.auras[val["buffname"]] = {}
 			end
 			tinsert(self.auras[val["buffname"]], cat)
-			
-			if (val["inverse"] or val["cooldown"]) and val["buffname"] ~= "unitpower" then
+
+            f = val["funct"]
+			if (f or val["inverse"] or val["cooldown"]) and val["buffname"] ~= "unitpower" then
 				self.NeedUpdate[cat] = true
 			end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions