From 5dd2be62dd2d0df745fb8a85ab8e08f0ca737027 Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Sun, 17 Nov 2019 10:20:41 +0100 Subject: [PATCH] Core/Pets: fixed a typo in last commit --- src/server/game/AI/CoreAI/PetAI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/game/AI/CoreAI/PetAI.cpp b/src/server/game/AI/CoreAI/PetAI.cpp index 443bfec6077..88f62cb75e2 100644 --- a/src/server/game/AI/CoreAI/PetAI.cpp +++ b/src/server/game/AI/CoreAI/PetAI.cpp @@ -491,7 +491,7 @@ void PetAI::DoAttack(Unit* target, bool chase) float chaseDistance = me->GetPetChaseDistance(); // Pets with ranged attacks should not care about the chase angle at all. - ChaseAngle angle = ChaseAngle(chaseDistance == 0.f ? float(M_PI) : 0.f, chaseDistance == 0.f ? M_PI_4 : float(M_PI_2)); + ChaseAngle angle = ChaseAngle(chaseDistance == 0.f ? float(M_PI) : 0.f, chaseDistance == 0.f ? float(M_PI_4) : float(M_PI * 2)); me->GetMotionMaster()->MoveChase(target, ChaseRange(0.f, chaseDistance), angle); } else // (Stay && ((Aggressive || Defensive) && In Melee Range)))