From 2ae42df93f39b09009ece1ece268a02b8ef2f344 Mon Sep 17 00:00:00 2001 From: Taracque Date: Thu, 13 Nov 2014 13:38:20 +0100 Subject: [PATCH] 1.0.3 Unholy Perk Improved Soul Reaper added --- DKCrutch.lua | 11 +++++++---- DKCrutch.toc | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/DKCrutch.lua b/DKCrutch.lua index 1512054..1c17216 100755 --- a/DKCrutch.lua +++ b/DKCrutch.lua @@ -1,5 +1,5 @@ ------------------------------------------------------------------------------- --- DKCrutch 1.0.2 +-- DKCrutch 1.0.3 -- -- Death Knight rune tracker and ability advisor ------------------------------------------------------------------------------- @@ -8,7 +8,7 @@ DKCrutch = {Locals = {}} local L = DKCrutch.Locals -DKCrutch.versionNumber = '1.0.2' +DKCrutch.versionNumber = '1.0.3' DKCrutch.talent = "" DKCrutch.talentUnsure = true DKCrutch.DebugMode = false @@ -41,13 +41,16 @@ DKCrutch.SpellList = { ["Death Strike"] = GetSpellInfo(49998), ["Blood Boil"] = GetSpellInfo(50842), ["Soul Reaper"] = GetSpellInfo(130736), - -- talent specifig ["Plague Leech"] = GetSpellInfo(123693), ["Blood Tap"] = GetSpellInfo(45529), ["Blood Charge"] = GetSpellInfo(114851), ["Unholy Blight"] = GetSpellInfo(115989), +-- draenor perks -- +-- unholy -- + ["Improved Soul Reaper"] = GetSpellInfo(157342), + -- presences ["Unholy Presence"] = GetSpellInfo(48265), ["Frost Presence"] = GetSpellInfo(48266), @@ -1001,7 +1004,7 @@ function DKCrutch:AdviseUnholyAbility() -- Soul Reaper, if target health < 35% if (DKCrutch.SpellList["Soul Reaper"]) then cd, _, enabled = DKCrutch:GetSpellCooldownRemaining(DKCrutch.SpellList["Soul Reaper"]) - if (enabled ~= nil) and (cd) and (cd<=0) and (UnitHealthMax("target")>0) and ((UnitHealth("target")/UnitHealthMax("target")<0.35) or ((UnitHealth("target")/UnitHealthMax("target")<0.45) and (DKCrutch.hasT15_4pcs))) then + if (enabled ~= nil) and (cd) and (cd<=0) and (UnitHealthMax("target")>0) and ((UnitHealth("target")/UnitHealthMax("target")<0.35) or ((UnitHealth("target")/UnitHealthMax("target")<0.45) and ((DKCrutch.hasT15_4pcs) or (DKCrutch.SpellList["Improved Soul Reaper"] ~= nil))) then return "Soul Reaper" end end diff --git a/DKCrutch.toc b/DKCrutch.toc index 164af41..616f9e2 100755 --- a/DKCrutch.toc +++ b/DKCrutch.toc @@ -2,7 +2,7 @@ ## Title: DKCrutch ## Notes: Death Knight rune tracker and rotation helper ## Author: Taracque, Dšgrov‡s of Arathor -## Version: 1.0.2 +## Version: 1.0.3 ## SavedVariables: DKCrutchDB ## OptionalDeps: ## Dependencies: -- 1.7.9.5