mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-11 11:48:37 +00:00
More scanning changes around AE cast
This commit is contained in:
+12
-7
@@ -467,35 +467,40 @@ Mob::~Mob()
|
||||
|
||||
AI_Stop();
|
||||
if (GetPet()) {
|
||||
if (GetPet()->Charmed())
|
||||
if (GetPet()->Charmed()) {
|
||||
GetPet()->BuffFadeByEffect(SE_Charm);
|
||||
else
|
||||
}
|
||||
else {
|
||||
SetPet(0);
|
||||
}
|
||||
}
|
||||
|
||||
EQApplicationPacket app;
|
||||
CreateDespawnPacket(&app, !IsCorpse());
|
||||
Corpse* corpse = entity_list.GetCorpseByID(GetID());
|
||||
if(!corpse || (corpse && !corpse->IsPlayerCorpse()))
|
||||
Corpse *corpse = entity_list.GetCorpseByID(GetID());
|
||||
if (!corpse || (corpse && !corpse->IsPlayerCorpse())) {
|
||||
entity_list.QueueClients(this, &app, true);
|
||||
}
|
||||
|
||||
entity_list.RemoveFromTargets(this, true);
|
||||
|
||||
if(trade) {
|
||||
if (trade) {
|
||||
Mob *with = trade->With();
|
||||
if(with && with->IsClient()) {
|
||||
if (with && with->IsClient()) {
|
||||
with->CastToClient()->FinishTrade(with);
|
||||
with->trade->Reset();
|
||||
}
|
||||
delete trade;
|
||||
}
|
||||
|
||||
if(HasTempPetsActive()){
|
||||
if (HasTempPetsActive()) {
|
||||
entity_list.DestroyTempPets(this);
|
||||
}
|
||||
entity_list.UnMarkNPC(GetID());
|
||||
UninitializeBuffSlots();
|
||||
|
||||
entity_list.RemoveMobFromCloseLists(this);
|
||||
|
||||
#ifdef BOTS
|
||||
LeaveHealRotationTargetPool();
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user