Quantcast

simplify targetlifenocd syntax

Sidoine De Wispelaere [10-17-10 - 10:17]
simplify targetlifenocd syntax

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@292 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
Ovale.lua
defaut/Pretre.lua
diff --git a/Ovale.lua b/Ovale.lua
index e92c872..931f175 100644
--- a/Ovale.lua
+++ b/Ovale.lua
@@ -1163,8 +1163,8 @@ function Ovale:AddSpellToStack(spellId, startCast, endCast, nextCast, nocd)
 					cd.duration = 0
 				end
 			end
-			if newSpellInfo.targetlifepercentnocd and not nocd then
-				if UnitHealth("target")/UnitHealthMax("target")*100<newSpellInfo.targetlifepercentnocd then
+			if newSpellInfo.targetlifenocd and not nocd then
+				if UnitHealth("target")/UnitHealthMax("target")*100<newSpellInfo.targetlifenocd then
 					cd.duration = 0
 				end
 			end
diff --git a/defaut/Pretre.lua b/defaut/Pretre.lua
index 6850cfb..5c45945 100644
--- a/defaut/Pretre.lua
+++ b/defaut/Pretre.lua
@@ -46,7 +46,7 @@ Define(MS 73510) # Mind Spike

 Define(SWD 32379) # Shadow Word : Death
 	SpellInfo(SWD cd=10)
-	SpellInfo(SWD targetlifepercentnocd=25 glyph=GLYPHSHADOWWORDDEATH)
+	SpellInfo(SWD targetlifenocd=25 glyph=GLYPHSHADOWWORDDEATH)

 Define(ARCHANGEL 87151) #Archangel
 	SpellInfo(ARCHANGEL cd=90)