mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +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
|
|
@ -1580,6 +1580,13 @@ void Creature::Respawn()
|
|||
}
|
||||
}
|
||||
|
||||
void Creature::ForcedDespawn()
|
||||
{
|
||||
setDeathState(JUST_DIED);
|
||||
RemoveCorpse();
|
||||
SetHealth(0); // just for nice GM-mode view
|
||||
}
|
||||
|
||||
bool Creature::IsImmunedToSpell(SpellEntry const* spellInfo)
|
||||
{
|
||||
if (!spellInfo)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue