mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 14:41:28 +00:00
[Bots] Charmed Pets were breaking Mob respawns (#4780)
- When bots would charm a pet, once they zoned or camped the pet would poof and not trigger a respawn so the NPC which was charmed would never respawn until the zone was shut down or server restarted.
This commit is contained in:
parent
5d69235a4c
commit
d00125abe1
12
zone/bot.cpp
12
zone/bot.cpp
@ -3578,8 +3578,16 @@ void Bot::Depop() {
|
|||||||
entity_list.RemoveFromHateLists(this);
|
entity_list.RemoveFromHateLists(this);
|
||||||
RemoveAllAuras();
|
RemoveAllAuras();
|
||||||
|
|
||||||
if (HasPet())
|
Mob* bot_pet = GetPet();
|
||||||
GetPet()->Depop();
|
|
||||||
|
if (bot_pet) {
|
||||||
|
if (bot_pet->Charmed()) {
|
||||||
|
bot_pet->BuffFadeByEffect(SE_Charm);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
bot_pet->Depop();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
_botOwner = nullptr;
|
_botOwner = nullptr;
|
||||||
_botOwnerCharacterID = 0;
|
_botOwnerCharacterID = 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user