Remove sightDistance from spell cast facing angle

This commit is contained in:
qudzy
2022-05-26 11:44:01 +02:00
parent 2705fe2cfa
commit 50a43f9709

View File

@@ -1771,7 +1771,7 @@ bool PlayerbotAI::CastSpell(uint32 spellId, Unit* target, Item* itemTarget)
bot->SetTarget(target->GetGUID());
WorldObject* faceTo = target;
if (!bot->HasInArc(CAST_ANGLE_IN_FRONT, faceTo, sPlayerbotAIConfig->sightDistance))
if (!bot->HasInArc(CAST_ANGLE_IN_FRONT, faceTo))
{
if (!bot->isMoving())
bot->SetFacingToObject(faceTo);