mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
Core/Pets: fixed a typo in last commit
This commit is contained in:
@@ -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