fix hunter auto shot

This commit is contained in:
Yunfan Li
2023-07-30 15:46:11 +08:00
parent ced13e5370
commit 252b2f259c
6 changed files with 9 additions and 8 deletions

View File

@@ -120,7 +120,7 @@ bool AttackAction::Attack(Unit* target, bool with_pet /*true*/)
if (IsMovingAllowed() && !bot->HasInArc(CAST_ANGLE_IN_FRONT, target))
bot->SetFacingToObject(target);
bool attacked = bot->Attack(target, !botAI->IsRanged(bot));
bool attacked = bot->Attack(target, true);
botAI->ChangeEngine(BOT_STATE_COMBAT);
return attacked;