mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
Remove sightDistance from attack angle calculation
This commit is contained in:
parent
0d48cff1e2
commit
c9166213f9
@ -120,7 +120,7 @@ bool AttackAction::Attack(Unit* target)
|
||||
botAI->PlayEmote(sounds[urand(0, sounds.size() - 1)]);
|
||||
}
|
||||
|
||||
if (IsMovingAllowed() && !bot->HasInArc(CAST_ANGLE_IN_FRONT, target, sPlayerbotAIConfig->sightDistance))
|
||||
if (IsMovingAllowed() && !bot->HasInArc(CAST_ANGLE_IN_FRONT, target))
|
||||
bot->SetFacingToObject(target);
|
||||
|
||||
bool attacked = bot->Attack(target, !botAI->IsRanged(bot));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user