mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
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:
commit
52f704dc79
@ -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!");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user