*Fix chain heal order bug.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-02-16 17:11:27 -06:00
parent 5ded6c8df4
commit 7762087e7d
+2 -2
View File
@@ -1315,9 +1315,9 @@ struct ChainHealingOrder : public std::binary_function<const Unit*, const Unit*,
int32 ChainHealingHash(Unit const* Target) const
{
if (Target == MainTarget)
/*if (Target == MainTarget)
return 0;
else if (Target->GetTypeId() == TYPEID_PLAYER && MainTarget->GetTypeId() == TYPEID_PLAYER &&
else*/ if (Target->GetTypeId() == TYPEID_PLAYER && MainTarget->GetTypeId() == TYPEID_PLAYER &&
((Player const*)Target)->IsInSameRaidWith((Player const*)MainTarget))
{
if (Target->GetHealth() == Target->GetMaxHealth())