mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-27 20:47:15 +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);
|
Raid* raid = entity_list.GetRaidByBot(this);
|
||||||
Client* bot_owner = (GetBotOwner() && GetBotOwner()->IsClient() ? GetBotOwner()->CastToClient() : nullptr);
|
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());
|
LogAI("Bot_Raid: Entered Raid Process() for [{}].", this->GetCleanName());
|
||||||
|
|
||||||
|
|||||||
@@ -34,8 +34,8 @@ bool Bot::AICastSpell(Mob* tar, uint8 iChance, uint32 iSpellTypes) {
|
|||||||
// Bot AI
|
// Bot AI
|
||||||
Raid* raid = entity_list.GetRaidByBot(this);
|
Raid* raid = entity_list.GetRaidByBot(this);
|
||||||
if (raid) {
|
if (raid) {
|
||||||
AICastSpell_Raid(tar, iChance, iSpellTypes);
|
return AICastSpell_Raid(tar, iChance, iSpellTypes);
|
||||||
return true;
|
//return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!tar) {
|
if (!tar) {
|
||||||
|
|||||||
@@ -569,6 +569,22 @@ void Client::CompleteConnect()
|
|||||||
if (raid) {
|
if (raid) {
|
||||||
SetRaidGrouped(true);
|
SetRaidGrouped(true);
|
||||||
raid->LearnMembers();
|
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->VerifyRaid();
|
||||||
raid->GetRaidDetails();
|
raid->GetRaidDetails();
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user