fix(CORE/Unit): Fix controllable guardians evading when not posed to be (#7959)

This commit is contained in:
jestermaniac
2021-10-14 16:48:37 +02:00
committed by GitHub
parent cb71cc0131
commit 5d36c94a2d

View File

@@ -9713,8 +9713,7 @@ bool Unit::Attack(Unit* victim, bool meleeAttack)
// set position before any AI calls/assistance
//if (GetTypeId() == TYPEID_UNIT)
// ToCreature()->SetCombatStartPosition(GetPositionX(), GetPositionY(), GetPositionZ());
if (creature && !IsControllableGuardian())
if (creature && !IsControlledByPlayer())
{
// should not let player enter combat by right clicking target - doesn't helps
SetInCombatWith(victim);