pet attack and bot target selection

This commit is contained in:
Yunfan Li
2023-05-28 10:55:56 +08:00
parent 1d276732e2
commit dc21fa9d41
8 changed files with 33 additions and 31 deletions

View File

@@ -94,7 +94,7 @@ bool EmoteActionBase::Emote(Unit* target, uint32 type, bool textEmote)
ObjectGuid oldSelection = bot->GetTarget();
if (target)
{
bot->SetTarget(target->GetGUID());
bot->SetSelection(target->GetGUID());
Player* player = dynamic_cast<Player*>(target);
if (player)