Core/Movement: fixed a typo in chase movement generator that was causing creatures to move backwards all the time when chasing another creature

This commit is contained in:
Ovahlord
2020-04-22 03:46:19 +02:00
parent 0647e3ca97
commit dbe365844b

View File

@@ -172,7 +172,7 @@ bool ChaseMovementGenerator::Update(Unit* owner, uint32 diff)
}
}
else if (owner->GetExactDist2d(target) > rangeTolerance + 0.1f) // 0.1f here to avoid edge cases when the owner has stepped back before
LaunchMovement(owner, target, chaseRange, mutualChase);
LaunchMovement(owner, target, chaseRange, false, mutualChase);
}
}