Quantcast

Merge pull request #21 from tekHudson/add-unit-stats-to-event

Tek Hudson [01-10-20 - 15:38]
Merge pull request #21 from tekHudson/add-unit-stats-to-event

Add UNIT_STATS to events trigger so bufs effect manabar instantly
Filename
DruidBar.lua
diff --git a/DruidBar.lua b/DruidBar.lua
index e783038..b4f815e 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;