Reset prioritized targets

This commit is contained in:
Yunfan Li
2024-09-10 20:45:46 +08:00
parent bca621a883
commit 25c46037cd
4 changed files with 4 additions and 3 deletions

View File

@@ -218,7 +218,7 @@ bool SummonAction::Teleport(Player* summoner, Player* player)
{
bot->ResurrectPlayer(1.0f, false);
botAI->TellMasterNoFacing("I live, again!");
botAI->GetAiObjectContext()->GetValue<GuidVector>("prioritized targets")->Set({});
botAI->GetAiObjectContext()->GetValue<GuidVector>("prioritized targets")->Reset();
}
player->GetMotionMaster()->Clear();