mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-28 07:56:24 +00:00
[Battlegrounds] fix bot self respawn in battleground
This commit is contained in:
@@ -125,7 +125,7 @@ bool AutoReleaseSpiritAction::Execute(Event event)
|
|||||||
mm.Clear();
|
mm.Clear();
|
||||||
mm.MovePoint(bot->GetMapId(), unit->GetPositionX(), unit->GetPositionY(), unit->GetPositionZ(), true);
|
mm.MovePoint(bot->GetMapId(), unit->GetPositionX(), unit->GetPositionY(), unit->GetPositionZ(), true);
|
||||||
}
|
}
|
||||||
else
|
else if (!botAI->IsRealPlayer()) // below doesnt work properly on realplayer, but its also not needed
|
||||||
{
|
{
|
||||||
bg_gossip_time = time(NULL);
|
bg_gossip_time = time(NULL);
|
||||||
WorldPacket packet(CMSG_GOSSIP_HELLO);
|
WorldPacket packet(CMSG_GOSSIP_HELLO);
|
||||||
@@ -133,7 +133,7 @@ bool AutoReleaseSpiritAction::Execute(Event event)
|
|||||||
bot->GetSession()->HandleGossipHelloOpcode(packet);
|
bot->GetSession()->HandleGossipHelloOpcode(packet);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
botAI->SetNextCheckDelay(1000);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user