Scripts/Naxxramas: Patchwerk's hateful strike should not hit the main tank

Signed-off-by: Machiavelli <[email protected]>
This commit is contained in:
Exordian
2011-01-06 21:08:07 +01:00
committed by Machiavelli
parent f832990678
commit 4a6098383d
@@ -119,7 +119,7 @@ public:
for (; i != me->getThreatManager().getThreatList().end(); ++i)
{
Unit *pTarget = (*i)->getTarget();
if (pTarget->isAlive() && pTarget->GetHealth() > MostHP && me->IsWithinMeleeRange(pTarget))
if (pTarget->isAlive() && pTarget != me->getVictim() && pTarget->GetHealth() > MostHP && me->IsWithinMeleeRange(pTarget))
{
MostHP = pTarget->GetHealth();
pMostHPTarget = pTarget;