Merge pull request #71 from qudzy/bug/spell-cast-facing-angle

Remove sightDistance from spell cast facing angle
This commit is contained in:
ZhengPeiRu21
2022-05-26 09:27:57 -06:00
committed by GitHub

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