Quantcast

Warrior: Only suggest Enraged Regeneration if below 80% health.

Johnny C. Lam [12-28-14 - 09:50]
Warrior: Only suggest Enraged Regeneration if below 80% health.

This avoids wasting the burst heal from Enraged Regeneration.
Filename
SimulationCraft.lua
diff --git a/SimulationCraft.lua b/SimulationCraft.lua
index 61e73b8..53fe4c6 100644
--- a/SimulationCraft.lua
+++ b/SimulationCraft.lua
@@ -1370,6 +1370,9 @@ EmitAction = function(parseNode, nodeList, annotation)
 			conditionCode = "pet.Present() and pet.CreatureFamily(Wrathguard)"
 		elseif class == "WARRIOR" and action == "charge" then
 			conditionCode = "target.InRange(charge)"
+		elseif class == "WARRIOR" and action == "enraged_regeneration" then
+			-- Only suggest Enraged Regeneration at below 80% health.
+			conditionCode = "HealthPercent() < 80"
 		elseif class == "WARRIOR" and strsub(action, 1, 7) == "execute" then
 			if modifier.target then
 				local target = Unparse(modifier.target)