mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01: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