mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-20 22:08:22 +00:00
Merge branch 'Bot_Raid_work' of https://github.com/neckkola/Server into Bot_Raid_work
This commit is contained in:
+10
-9
@@ -3994,7 +3994,15 @@ void Bot::Depop() {
|
|||||||
entity_list.RemoveFromHateLists(this);
|
entity_list.RemoveFromHateLists(this);
|
||||||
if(HasGroup())
|
if(HasGroup())
|
||||||
Bot::RemoveBotFromGroup(this, GetGroup());
|
Bot::RemoveBotFromGroup(this, GetGroup());
|
||||||
|
|
||||||
|
//Mitch
|
||||||
|
Raid* bot_raid = entity_list.GetRaidByBotName(this->GetName());
|
||||||
|
if (bot_raid) {
|
||||||
|
uint32 gid = bot_raid->GetGroup(this->GetName());
|
||||||
|
bot_raid->SendRaidGroupRemove(this->GetName(), bot_raid->GetGroup(this->GetName()));
|
||||||
|
bot_raid->RemoveMember(this->GetName());
|
||||||
|
bot_raid->GroupUpdate(gid);
|
||||||
|
}
|
||||||
if(HasPet())
|
if(HasPet())
|
||||||
GetPet()->Depop();
|
GetPet()->Depop();
|
||||||
|
|
||||||
@@ -8426,14 +8434,7 @@ void Bot::Camp(bool databaseSave) {
|
|||||||
if(GetGroup())
|
if(GetGroup())
|
||||||
RemoveBotFromGroup(this, GetGroup());
|
RemoveBotFromGroup(this, GetGroup());
|
||||||
|
|
||||||
//Mitch
|
|
||||||
Raid* bot_raid = entity_list.GetRaidByBotName(this->GetName());
|
|
||||||
if (bot_raid) {
|
|
||||||
uint32 gid = bot_raid->GetGroup(this->GetName());
|
|
||||||
bot_raid->SendRaidGroupRemove(this->GetName(), bot_raid->GetGroup(this->GetName()));
|
|
||||||
bot_raid->RemoveMember(this->GetName());
|
|
||||||
bot_raid->GroupUpdate(gid);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// RemoveBotFromGroup() code is too complicated for this to work as-is (still needs to be addressed to prevent memory leaks)
|
// RemoveBotFromGroup() code is too complicated for this to work as-is (still needs to be addressed to prevent memory leaks)
|
||||||
|
|||||||
@@ -587,6 +587,7 @@ void Client::CompleteConnect()
|
|||||||
if (b)
|
if (b)
|
||||||
{
|
{
|
||||||
b->SetRaidGrouped(true);
|
b->SetRaidGrouped(true);
|
||||||
|
b->p_raid_instance = raid;
|
||||||
//b->SetFollowID(this->GetID());
|
//b->SetFollowID(this->GetID());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -209,6 +209,7 @@ void Raid::AddBot(Bot* b, uint32 group, bool rleader, bool groupleader, bool loo
|
|||||||
SendRaidAddAll(b->GetName());
|
SendRaidAddAll(b->GetName());
|
||||||
|
|
||||||
b->SetRaidGrouped(true);
|
b->SetRaidGrouped(true);
|
||||||
|
b->p_raid_instance = this;
|
||||||
//SendRaidMOTD(b->GetOwner()->CastToClient());
|
//SendRaidMOTD(b->GetOwner()->CastToClient());
|
||||||
|
|
||||||
// Mitch What to do here?
|
// Mitch What to do here?
|
||||||
|
|||||||
Reference in New Issue
Block a user