mirror of
https://github.com/mangosfour/server.git
synced 2025-12-22 04:37:01 +00:00
[8040] Implement Creature::ForcedDespawn and ACTION_T_FORCE_DESPAWN for EventAI.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
23c96493b1
commit
68848314e2
9 changed files with 33 additions and 23 deletions
|
|
@ -1563,9 +1563,7 @@ void Aura::TriggerSpell()
|
|||
|
||||
player->AutoStoreLoot(creature->GetCreatureInfo()->SkinLootId,LootTemplates_Skinning,true);
|
||||
|
||||
creature->setDeathState(JUST_DIED);
|
||||
creature->RemoveCorpse();
|
||||
creature->SetHealth(0); // just for nice GM-mode view
|
||||
creature->ForcedDespawn();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
@ -1714,9 +1712,7 @@ void Aura::TriggerSpell()
|
|||
|
||||
Creature* creatureTarget = (Creature*)m_target;
|
||||
|
||||
creatureTarget->setDeathState(JUST_DIED);
|
||||
creatureTarget->RemoveCorpse();
|
||||
creatureTarget->SetHealth(0); // just for nice GM-mode view
|
||||
creatureTarget->ForcedDespawn();
|
||||
return;
|
||||
}
|
||||
// // Magic Sucker Device timer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue