mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-29 08:23:48 +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());
|
bot->SetTarget(target->GetGUID());
|
||||||
|
|
||||||
WorldObject* faceTo = target;
|
WorldObject* faceTo = target;
|
||||||
if (!bot->HasInArc(CAST_ANGLE_IN_FRONT, faceTo, sPlayerbotAIConfig->sightDistance))
|
if (!bot->HasInArc(CAST_ANGLE_IN_FRONT, faceTo))
|
||||||
{
|
{
|
||||||
if (!bot->isMoving())
|
if (!bot->isMoving())
|
||||||
bot->SetFacingToObject(faceTo);
|
bot->SetFacingToObject(faceTo);
|
||||||
|
|||||||
Reference in New Issue
Block a user