* Fix the damn everloving neutral assist once again

* Patch coutesy of PivoNRoll

--HG--
branch : trunk
This commit is contained in:
Brian
2010-05-06 02:13:15 -06:00
parent f60d534b73
commit 42a379bfb1

View File

@@ -11510,6 +11510,9 @@ bool Unit::canAttack(Unit const* target, bool force) const
{
if (IsFriendlyTo(target))
return false;
if (GetTypeId()!=TYPEID_PLAYER)
if (!IsHostileTo(target))
return false;
}
else if (!IsHostileTo(target))
return false;