Training dummies can have up to 2 health points.
Johnny C. Lam [10-13-12 - 00:07]
Training dummies can have up to 2 health points.
git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@594 d5049fe3-3747-40f7-a4b5-f36d6801af5f
diff --git a/OvaleCondition.lua b/OvaleCondition.lua
index 83c84d2..4ef983c 100644
--- a/OvaleCondition.lua
+++ b/OvaleCondition.lua
@@ -374,8 +374,8 @@ local function getTargetDead(target)
if newHealth then
Ovale:Log("newHealth = " .. newHealth)
end
- if UnitHealthMax(target)==1 then
- Ovale:Log("Dummy, return in the future")
+ if UnitHealthMax(target) <= 2 then
+ Ovale:Log("Training Dummy, return in the future")
return OvaleState.currentTime + 3600
end
if second~=lastSaved[target] and targetGUID[target] then