From 50a43f9709f1609d47b86a93400f8be7f7dde3c6 Mon Sep 17 00:00:00 2001 From: qudzy <102037134+qudzy@users.noreply.github.com> Date: Thu, 26 May 2022 11:44:01 +0200 Subject: [PATCH] Remove sightDistance from spell cast facing angle --- src/PlayerbotAI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PlayerbotAI.cpp b/src/PlayerbotAI.cpp index a4148eb1..6e082bd2 100644 --- a/src/PlayerbotAI.cpp +++ b/src/PlayerbotAI.cpp @@ -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);