From f456454d062dbb7d9cf44d8e3476a86733ddab89 Mon Sep 17 00:00:00 2001 From: Taracque Date: Wed, 19 Sep 2012 22:45:35 +0200 Subject: [PATCH] Added Soul Reaper Version changed to 0.6.0 --- DKCrutch.lua | 23 ++++++++++++++++++++--- DKCrutch.toc | 2 +- 2 files changed, 21 insertions(+), 4 deletions(-) mode change 100644 => 100755 DKCrutch.lua mode change 100644 => 100755 DKCrutch.toc mode change 100644 => 100755 DKCrutch_GUI.lua mode change 100644 => 100755 locales/enUS.lua diff --git a/DKCrutch.lua b/DKCrutch.lua old mode 100644 new mode 100755 index 72cc02b..37bbbb2 --- a/DKCrutch.lua +++ b/DKCrutch.lua @@ -1,5 +1,5 @@ ------------------------------------------------------------------------------- --- DKCrutch 0.5.5 +-- DKCrutch 0.6.0 -- -- Death Knight rune tracker and ability advisor ------------------------------------------------------------------------------- @@ -8,7 +8,7 @@ DKCrutch = {Locals = {}} local L = DKCrutch.Locals -DKCrutch.versionNumber = '0.5.5' +DKCrutch.versionNumber = '0.6.0' DKCrutch.talent = "" DKCrutch.isEnabled = false DKCrutch.talentUnsure = true @@ -40,7 +40,8 @@ DKCrutch.SpellList = { ["Rune Strike"] = GetSpellInfo(56815), ["Heart Strike"] = GetSpellInfo(55050), ["Blood Boil"] = GetSpellInfo(48721), - + ["Soul Reaper"] = GetSpellInfo(130736), + -- talent specifig ["Plague Leech"] = GetSpellInfo(123693), ["Blood Tap"] = GetSpellInfo(45529), @@ -643,6 +644,14 @@ function DKCrutch:AdviseFrostAbility() end end + -- Soul Reaper, if target health < 35% + if (DKCrutch.SpellList["Soul Reaper"]) then + cd, enabled = DKCrutch:GetSpellCooldownRemaining(DKCrutch.SpellList["Dark Transformation"]) + if (cd) and (cd<=0) and (UnitHealthMax("target")>0) and (UnitHealth("target")/UnitHealthMax("target")<0.35) then + return "Soul Reaper" + end + end + -- Blood Tap if have at least 5 charges, and at least on fully depleted rune if (DKCrutch.SpellList["Blood Tap"]) then local name,_,_,count = DKCrutch:hasBuff("player", DKCrutch.SpellList["Blood Charge"]) @@ -761,6 +770,14 @@ function DKCrutch:AdviseUnholyAbility() end end + -- Soul Reaper, if target health < 35% + if (DKCrutch.SpellList["Soul Reaper"]) then + cd, enabled = DKCrutch:GetSpellCooldownRemaining(DKCrutch.SpellList["Dark Transformation"]) + if (cd) and (cd<=0) and (UnitHealthMax("target")>0) and (UnitHealth("target")/UnitHealthMax("target")<0.35) then + return "Soul Reaper" + end + end + -- Dark Transform, if has pet and available cd, enabled = DKCrutch:GetSpellCooldownRemaining(DKCrutch.SpellList["Dark Transformation"]) if (cd) and (cd<=0) and (IsUsableSpell(DKCrutch.SpellList["Dark Transformation"])) and ( PetHasActionBar() ) then diff --git a/DKCrutch.toc b/DKCrutch.toc old mode 100644 new mode 100755 index a19c853..bf75cd2 --- 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: 0.5.5 +## Version: 0.6.0 ## SavedVariables: DKCrutchDB ## OptionalDeps: ## Dependencies: diff --git a/DKCrutch_GUI.lua b/DKCrutch_GUI.lua old mode 100644 new mode 100755 diff --git a/locales/enUS.lua b/locales/enUS.lua old mode 100644 new mode 100755 -- 1.7.9.5