aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellAuras.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-06-18 17:05:01 -0500
committermegamage <none@none>2009-06-18 17:05:01 -0500
commitc4a8da0e32d43099c3bc3797aecc94070ab6a0d3 (patch)
treed2ac4e929e36858a3fa8ad14d9254d2f034e3f3e /src/game/SpellAuras.cpp
parent2d7a579dab8141577cd4205450affbc45737a870 (diff)
[8040] Implement Creature::ForcedDespawn and ACTION_T_FORCE_DESPAWN for EventAI. Author: NoFantasy
--HG-- branch : trunk
Diffstat (limited to 'src/game/SpellAuras.cpp')
-rw-r--r--src/game/SpellAuras.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index abc0e97206a..bf765f65c74 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -1884,9 +1884,7 @@ void AuraEffect::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;
}
@@ -2035,9 +2033,7 @@ void AuraEffect::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