Core/Pets: fixed a typo in last commit

This commit is contained in:
Ovahlord
2019-11-17 10:20:41 +01:00
parent 325131c690
commit 5dd2be62dd

View File

@@ -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)))