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);