mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +00:00
end of day Jan 16
This commit is contained in:
+1
-1
@@ -54,7 +54,7 @@ void Bot::AI_Process_Raid()
|
||||
|
||||
Raid* raid = entity_list.GetRaidByBot(this);
|
||||
Client* bot_owner = (GetBotOwner() && GetBotOwner()->IsClient() ? GetBotOwner()->CastToClient() : nullptr);
|
||||
int r_group = raid->GetGroup(GetName());
|
||||
uint32 r_group = raid->GetGroup(GetName());
|
||||
|
||||
LogAI("Bot_Raid: Entered Raid Process() for [{}].", this->GetCleanName());
|
||||
|
||||
|
||||
@@ -34,8 +34,8 @@ bool Bot::AICastSpell(Mob* tar, uint8 iChance, uint32 iSpellTypes) {
|
||||
// Bot AI
|
||||
Raid* raid = entity_list.GetRaidByBot(this);
|
||||
if (raid) {
|
||||
AICastSpell_Raid(tar, iChance, iSpellTypes);
|
||||
return true;
|
||||
return AICastSpell_Raid(tar, iChance, iSpellTypes);
|
||||
//return true;
|
||||
}
|
||||
|
||||
if (!tar) {
|
||||
|
||||
@@ -569,6 +569,22 @@ void Client::CompleteConnect()
|
||||
if (raid) {
|
||||
SetRaidGrouped(true);
|
||||
raid->LearnMembers();
|
||||
#ifdef BOTS
|
||||
std::vector<RaidMember> r_members = raid->GetMembers();
|
||||
for (RaidMember iter : r_members) {
|
||||
if (iter.member && iter.member->IsBot() && iter.member->GetOwner()->CastToClient()->CharacterID() == this->CharacterID()) {
|
||||
iter.member->CastToBot()->Spawn(this);
|
||||
iter.member->CastToBot()->SetRaidGrouped(true);
|
||||
uint32 r_group = raid->GetGroup(iter.member->GetName());
|
||||
if (r_group > 0) {
|
||||
iter.member->CastToBot()->SetFollowID(raid->GetGroupLeader(r_group)->CastToClient()->GetID());
|
||||
}
|
||||
else {
|
||||
iter.member->CastToBot()->SetFollowID(raid->GetLeader()->GetID());
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
raid->VerifyRaid();
|
||||
raid->GetRaidDetails();
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user