Add UNIT_STATS to events trigger so bufs effect manabar instantly
Tek Hudson [01-10-20 - 15:38]
Add UNIT_STATS to events trigger so bufs effect manabar instantly
diff --git a/DruidBar.lua b/DruidBar.lua
index 951aa76..1332d63 100644
--- a/DruidBar.lua
+++ b/DruidBar.lua
@@ -39,11 +39,13 @@ function EventRegistration(event)
if event == "PLAYER_ENTERING_WORLD" then
--Thanks to Tigerheart from Argent Dawn for this little piece of work, as well as fireball and prudence for bringing it up!
DruidBarUpdateFrame:RegisterEvent("UNIT_AURA");
+ DruidBarUpdateFrame:RegisterEvent("UNIT_STATS");
DruidBarUpdateFrame:RegisterEvent("UNIT_POWER_UPDATE");
DruidBarUpdateFrame:RegisterEvent("UPDATE_SHAPESHIFT_FORMS");
return;
elseif event == "PLAYER_LEAVING_WORLD" then
DruidBarUpdateFrame:UnregisterEvent("UNIT_AURA");
+ DruidBarUpdateFrame:UnregisterEvent("UNIT_STATS");
DruidBarUpdateFrame:UnregisterEvent("UNIT_POWER_UPDATE");
DruidBarUpdateFrame:UnregisterEvent("UPDATE_SHAPESHIFT_FORMS");
return;