Quantcast

- protection paladin: fix for hammer of wrath

Sidoine De Wispelaere [02-07-12 - 20:20]
- protection paladin: fix for hammer of wrath
- bug fix for nil values

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@463 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
Ovale.lua
Ovale.toc
defaut/Paladin.lua
diff --git a/Ovale.lua b/Ovale.lua
index 1f6e3ce..99a1027 100644
--- a/Ovale.lua
+++ b/Ovale.lua
@@ -2225,7 +2225,7 @@ function Ovale:CalculerMeilleureAction(element)
 		local y = elementB.origin
 		local z = elementB.rate

-		if not a or not x then
+		if not a or not x or not b or not y then
 			self:Log("operator " .. element.operator .. ": a or x is nil")
 			return nil
 		end
diff --git a/Ovale.toc b/Ovale.toc
index f127fd8..e2a2df5 100644
--- a/Ovale.toc
+++ b/Ovale.toc
@@ -3,7 +3,7 @@
 ## Notes: Show the icon of the next spell to cast
 ## Notes-frFR: Affiche l'icône du prochain sort à lancer
 ## Author: Sidoine
-## Version: 4.3.5
+## Version: 4.3.6
 ## OptionalDeps: Ace3, Masque, Recount, Skada, LibBabble-CreatureType-3.0, LibRangeCheck-2.0
 ## SavedVariables: OvaleDB
 ## SavedVariablesPerCharacter: OvaleDBPC
diff --git a/defaut/Paladin.lua b/defaut/Paladin.lua
index 9229bc6..5ccbdd0 100644
--- a/defaut/Paladin.lua
+++ b/defaut/Paladin.lua
@@ -135,7 +135,7 @@ AddIcon help=main mastery=2
 	#crusader_strike,if=holy_power<3
 	if HolyPower(less 3) Spell(CRUSADERSTRIKE)
 	#hammer_of_wrath
-	if TargetLifePercent(less 20) or BuffPresent(AVENGINGWRATH) Spell(HAMMEROFWRATH)
+	if TargetLifePercent(less 20) Spell(HAMMEROFWRATH)
 	#avengers_shield,if=cooldown.crusader_strike.remains>=0.2
 	if spell(CRUSADERSTRIKE)>0.2 Spell(AVENGERSSHIELD)
 	#judgement