Crash fix: Bots now properly turn their corpse into bones when resurrected so they don't have a second corpse after dying and releasing again. (#1165)

This commit is contained in:
EricksOliveira 2025-04-04 10:56:56 -03:00 committed by GitHub
parent 7446d0b1d4
commit 3d743ccab3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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