BigWigs Bossmods

12 - New Malygos features: Power Spark gained (p1) and Static Field (p3)

What does the provided patch do?

Adds a phase one alert when Malygos gains the Power Spark buff and a phase three alert when you're taking Static Field damage.

Please provide any additional information below.

Tested on heroic.  Patched against revision 4863.

--- G:/Games/World of Warcraft/Interface/AddOns/BigWigs_Northrend/Malygos.lua  Sun Dec 21 17:46:06 2008
+++ G:/Games/World of Warcraft/Interface/AddOns/BigWigs_Northrend/Malygos.lua-mine  Mon Dec 22 01:30:37 2008
@@ -27,2 +27,6 @@
 
+    spark = "Power Spark Buff",
+    spark_desc = "Warns when Malygos gains the Power Spark buff",
+    spark_message = "Malygos gains Power Spark!",
+
     vortex = "Vortex",
@@ -43,2 +47,6 @@
 
+    static = "Static Field",
+    static_desc = "Warn when near a Static Field.",
+    static_message = "Static Field on YOU!",
+
     surge = "Surge of Power",
@@ -48,3 +56,3 @@
     icon = "Raid Target Icon",
-    icon_desc = "Place a Raid Target Icon on the player that Surge of Power is being cast on(requires promoted or higher)",
+    icon_desc = "Place a Raid Target Icon on the player that Surge of Power is being cast on (requires promoted or higher)",
 
@@ -287,3 +295,3 @@
 mod.guid = 28859
-mod.toggleoptions = {"phase", -1, "sparks", "vortex", -1, "overload", "breath", -1, "surge", "icon", "berserk", "bosskill"}
+mod.toggleoptions = {"phase", -1, "sparks", "spark", "vortex", -1, "overload", "breath", -1, "surge", "static", -1, "icon", "berserk", "bosskill"}
 mod.revision = tonumber(("$Revision: 4863 $"):sub(12, -3))
@@ -295,3 +303,5 @@
 function mod:OnEnable()
+    self:AddCombatListener("SPELL_AURA_APPLIED", "Static", 57429)
     self:AddCombatListener("SPELL_AURA_APPLIED", "Surge", 57407, 60936)
+    self:AddCombatListener("SPELL_AURA_APPLIED", "Spark", 56152)
     self:AddCombatListener("SPELL_CAST_SUCCESS", "Vortex", 56105)
@@ -316,2 +326,14 @@
 
+function mod:Spark(target, spellID)
+    if target == boss and phase == 1 and db.spark then
+        self:IfMessage(L["spark_message"], "Important", spellID)
+    end
+end
+
+function mod:Static(target, spellID)
+    if target == pName and db.static then
+        self:LocalMessage(L["static_message"], "Personal", nil, "Alarm")
+    end
+end
+
 function mod:Vortex(_, spellID)

User When Change
Rabbit Sat, 07 Mar 2009 00:47:49 Changed status from New to Fixed
nebula169 Mon, 22 Dec 2008 07:53:39 Create

You must login to post a comment. Don't have an account? Register to get one!

Facts

Last updated on
07 Mar 2009
Reported on
22 Dec 2008
Status
Fixed - Developer made requested changes. QA should verify.
Type
Patch - Source code patch for review
Priority
Medium - Normal priority.

Reported by

Possible assignees

© 2008-2009 Curse Inc.