mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-10 10:50:24 +00:00
Bot Group Work
Fixed botid=charid spawn on zone issue Added a group_list update on zone to refresh from database to fix a dangling pointer to a Bot object that was camped but was previously in a group within the zone being entered. Modified Bot::ProcessBotGroupInvite to use the client of the bot when doing the Bot initialization so that a leader can invite another owner's Bot
This commit is contained in:
+2
-2
@@ -8596,8 +8596,8 @@ Bot* Bot::GetBotByBotClientOwnerAndBotName(Client* c, std::string botName) {
|
||||
|
||||
void Bot::ProcessBotGroupInvite(Client* c, std::string botName) {
|
||||
if(c) {
|
||||
Bot* invitedBot = GetBotByBotClientOwnerAndBotName(c, botName);
|
||||
|
||||
Bot* invitedBot = GetBotByBotClientOwnerAndBotName(entity_list.GetBotByBotName(botName)->GetOwner()->CastToClient(), botName);
|
||||
//Mitch changed entity from c
|
||||
if(invitedBot && !invitedBot->HasGroup()) {
|
||||
if(!c->IsGrouped()) {
|
||||
Group *g = new Group(c);
|
||||
|
||||
Reference in New Issue
Block a user