Core/Pets: fixed a typo in last commit
This commit is contained in:
1 parent
325131c690
commit
5dd2be62dd
1 file changed
+1
-1
@@ -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)))
|
||||
|
||||
Reference in new issue
Block a user