mirror of
https://github.com/araxiaonline/TrinityCore2.git
synced 2026-06-17 21:39:52 -04:00
* Fix the damn everloving neutral assist once again
* Patch coutesy of PivoNRoll --HG-- branch : trunk
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user