From b9a4b9c8d0b25c822e5aef3335e2a1c6cc2d6e87 Mon Sep 17 00:00:00 2001 From: Parnic Date: Sun, 27 Jul 2008 00:09:32 +0000 Subject: [PATCH] - fixed a typo in combo points module - added missing 'then' in gcd module - removed registration of unnecessary events in player and target mana for DK rune stuff --- modules/ComboPoints.lua | 2 +- modules/GlobalCoolDown.lua | 2 +- modules/PlayerMana.lua | 3 --- modules/TargetMana.lua | 3 --- 4 files changed, 2 insertions(+), 8 deletions(-) diff --git a/modules/ComboPoints.lua b/modules/ComboPoints.lua index 81c6d5e..4ab7af3 100644 --- a/modules/ComboPoints.lua +++ b/modules/ComboPoints.lua @@ -82,7 +82,7 @@ function ComboPoints.prototype:GetOptions() opts["gradient"] = { type = "toggle", name = "Change color", - desc = "1 compo point: yellow, 5 combo points: red", + desc = "1 combo point: yellow, 5 combo points: red", get = function() return self.moduleSettings.gradient end, diff --git a/modules/GlobalCoolDown.lua b/modules/GlobalCoolDown.lua index e41951d..98d32b4 100644 --- a/modules/GlobalCoolDown.lua +++ b/modules/GlobalCoolDown.lua @@ -40,7 +40,7 @@ end function GlobalCoolDown.prototype:GetSpellName() local defaultSpells; - if (IceHUD.WowVer >= 30000) + if (IceHUD.WowVer >= 30000) then defaultSpells = { ROGUE=GetSpellInfo(1833), -- cheap shot PRIEST=GetSpellInfo(139), -- renew diff --git a/modules/PlayerMana.lua b/modules/PlayerMana.lua index d9b248b..00cc42b 100644 --- a/modules/PlayerMana.lua +++ b/modules/PlayerMana.lua @@ -108,9 +108,6 @@ function PlayerMana.prototype:Enable(core) -- DK rune stuff if IceHUD.WowVer >= 30000 then self:RegisterEvent("UNIT_RUNIC_POWER", "Update") - self:RegisterEvent("RUNE_TYPE_UPDATE", "Update") - self:RegisterEvent("RUNE_POWER_UPDATE", "Update") - self:RegisterEvent("RUNE_REGEN_UPDATE", "Update") end self:RegisterEvent("UNIT_DISPLAYPOWER", "ManaType") diff --git a/modules/TargetMana.lua b/modules/TargetMana.lua index 52fe9b4..3b81fc3 100644 --- a/modules/TargetMana.lua +++ b/modules/TargetMana.lua @@ -42,9 +42,6 @@ function TargetMana.prototype:Enable(core) -- DK rune stuff if IceHUD.WowVer >= 30000 then self:RegisterEvent("UNIT_RUNIC_POWER", "Update") - self:RegisterEvent("RUNE_TYPE_UPDATE", "Update") - self:RegisterEvent("RUNE_POWER_UPDATE", "Update") - self:RegisterEvent("RUNE_REGEN_UPDATE", "Update") end self:Update("target")