Core/Combat: more cleanups and converted threat packets back to packet class

This commit is contained in:
Ovahlord committed 2020-07-23 13:33:46 +02:00
1 parent 1ab7a9328f
commit e677461c5d
4 files changed
+52 -33

No files matched your search

+1 -1
View File
@@ -5746,7 +5746,7 @@ bool Unit::Attack(Unit* victim, bool meleeAttack)
//if (GetTypeId() == TYPEID_UNIT)
// ToCreature()->SetCombatStartPosition(GetPositionX(), GetPositionY(), GetPositionZ());
if (creature && !IsPet())
if (creature && !IsControlledByPlayer())
{
EngageWithTarget(victim); // ensure that anything we're attacking has threat