Merge pull request #1235 from liyunfan1223/revert-1125-patch-17

Revert "Add possible crash fix when summoning an invalid bot"
This commit is contained in:
blinkysc 2025-04-24 11:13:48 -05:00 committed by GitHub
commit 52f704dc79
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -217,9 +217,6 @@ bool SummonAction::Teleport(Player* summoner, Player* player)
if (bot->isDead() && revive) if (bot->isDead() && revive)
{ {
if (!botAI->IsSafe(player) || !botAI->IsSafe(summoner))
return false;
bot->ResurrectPlayer(1.0f, false); bot->ResurrectPlayer(1.0f, false);
bot->SpawnCorpseBones(); bot->SpawnCorpseBones();
botAI->TellMasterNoFacing("I live, again!"); botAI->TellMasterNoFacing("I live, again!");