[Attack target] Cancel mount aura and remove within dist check

This commit is contained in:
Yunfan Li
2024-07-11 11:28:57 +08:00
parent 80b7f18841
commit 53c4198afd
2 changed files with 2 additions and 2 deletions

View File

@@ -95,7 +95,7 @@ bool AttackAction::Attack(Unit* target, bool with_pet /*true*/)
return false;
}
if (bot->IsMounted() && bot->IsWithinLOSInMap(target) && sServerFacade->GetDistance2d(bot, target) < 40.0f)
if (bot->IsMounted() && bot->IsWithinLOSInMap(target))
{
WorldPacket emptyPacket;
bot->GetSession()->HandleCancelMountAuraOpcode(emptyPacket);