mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 14:41:28 +00:00
[Crash] Bot aura crash fix (#4752)
- Something between the latest release caused this crash to appear, unsure of this exact cause. - Prevents bots from being sent a spawn packet for Auras. - Removes the bot's auras on Depop
This commit is contained in:
parent
5a1df38900
commit
da824d5178
@ -690,12 +690,16 @@ void Aura::ProcessSpawns()
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!e.second->IsOfClientBot()) {
|
if (!e.second->IsClient()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto c = e.second->CastToClient();
|
auto c = e.second->CastToClient();
|
||||||
|
|
||||||
|
if (!c) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
bool spawned = spawned_for.find(c->GetID()) != spawned_for.end();
|
bool spawned = spawned_for.find(c->GetID()) != spawned_for.end();
|
||||||
if (ShouldISpawnFor(c)) {
|
if (ShouldISpawnFor(c)) {
|
||||||
if (!spawned) {
|
if (!spawned) {
|
||||||
|
|||||||
@ -3615,6 +3615,7 @@ void Bot::BotPullerProcess(Client* bot_owner, Raid* raid) {
|
|||||||
void Bot::Depop() {
|
void Bot::Depop() {
|
||||||
WipeHateList();
|
WipeHateList();
|
||||||
entity_list.RemoveFromHateLists(this);
|
entity_list.RemoveFromHateLists(this);
|
||||||
|
RemoveAllAuras();
|
||||||
|
|
||||||
if (HasPet())
|
if (HasPet())
|
||||||
GetPet()->Depop();
|
GetPet()->Depop();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user