mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
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