Core/Unit: Guardians no longer enter combat before reaching the target
Port From (https://github.com/TrinityCore/TrinityCore/commit/0de5fbb6c0aee0ef7fd7750dd8246f6ae576bc83)
This commit is contained in:
@@ -328,7 +328,7 @@ namespace Game.Entities
|
|||||||
if (meleeAttack)
|
if (meleeAttack)
|
||||||
AddUnitState(UnitState.MeleeAttacking);
|
AddUnitState(UnitState.MeleeAttacking);
|
||||||
|
|
||||||
if (creature != null && !IsPet())
|
if (creature != null && !IsControlledByPlayer())
|
||||||
{
|
{
|
||||||
EngageWithTarget(victim); // ensure that anything we're attacking has threat
|
EngageWithTarget(victim); // ensure that anything we're attacking has threat
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user