mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 06:21:28 +00:00
[Bots] Fix unresponsive bots in groups upon group wipe (#4712)
- Bots were failing to recall their group after dying due to the way it was grabbing the group from entity list.
This commit is contained in:
parent
eb6ac25540
commit
805757ba87
@ -3728,7 +3728,7 @@ bool Bot::Spawn(Client* botCharacterOwner) {
|
|||||||
SetVerifiedRaid(true);
|
SetVerifiedRaid(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (auto group = entity_list.GetGroupByMob(this)) {
|
else if (auto group = entity_list.GetGroupByMobName(GetName())) {
|
||||||
// Safety Check to confirm we have a valid group
|
// Safety Check to confirm we have a valid group
|
||||||
auto owner = GetBotOwner();
|
auto owner = GetBotOwner();
|
||||||
if (owner && !group->IsGroupMember(owner->GetCleanName())) {
|
if (owner && !group->IsGroupMember(owner->GetCleanName())) {
|
||||||
@ -3744,7 +3744,7 @@ bool Bot::Spawn(Client* botCharacterOwner) {
|
|||||||
|
|
||||||
if (RuleB(Bots, RunSpellTypeChecksOnSpawn)) {
|
if (RuleB(Bots, RunSpellTypeChecksOnSpawn)) {
|
||||||
OwnerMessage("Running SpellType checks. There may be some spells that are mislabeled as incorrect. Use this as a loose guideline.");
|
OwnerMessage("Running SpellType checks. There may be some spells that are mislabeled as incorrect. Use this as a loose guideline.");
|
||||||
CheckBotSpells(); //This runs through a serious of checks and outputs any spells that are set to the wrong spell type in the database
|
CheckBotSpells(); //This runs through a series of checks and outputs any spells that are set to the wrong spell type in the database
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IsBotRanged()) {
|
if (IsBotRanged()) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user