fix(CORE/Unit): Fix controllable guardians evading when not posed to be (#7959)
This commit is contained in:
@@ -9713,8 +9713,7 @@ bool Unit::Attack(Unit* victim, bool meleeAttack)
|
|||||||
// set position before any AI calls/assistance
|
// set position before any AI calls/assistance
|
||||||
//if (GetTypeId() == TYPEID_UNIT)
|
//if (GetTypeId() == TYPEID_UNIT)
|
||||||
// ToCreature()->SetCombatStartPosition(GetPositionX(), GetPositionY(), GetPositionZ());
|
// ToCreature()->SetCombatStartPosition(GetPositionX(), GetPositionY(), GetPositionZ());
|
||||||
|
if (creature && !IsControlledByPlayer())
|
||||||
if (creature && !IsControllableGuardian())
|
|
||||||
{
|
{
|
||||||
// should not let player enter combat by right clicking target - doesn't helps
|
// should not let player enter combat by right clicking target - doesn't helps
|
||||||
SetInCombatWith(victim);
|
SetInCombatWith(victim);
|
||||||
|
|||||||
Reference in New Issue
Block a user