From 2c0fcac03f089c1fcc794712727451eec103589c Mon Sep 17 00:00:00 2001 From: Taracque Date: Thu, 13 Nov 2014 14:12:14 +0100 Subject: [PATCH] Fixed a missing ( --- DKCrutch.lua | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/DKCrutch.lua b/DKCrutch.lua index 1c17216..f80a8fe 100755 --- a/DKCrutch.lua +++ b/DKCrutch.lua @@ -1004,7 +1004,16 @@ 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) or (DKCrutch.SpellList["Improved Soul Reaper"] ~= nil))) 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 -- 1.7.9.5