mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-13 09:07:19 +00:00
Merge pull request #71 from qudzy/bug/spell-cast-facing-angle
Remove sightDistance from spell cast facing angle
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user