diff options
| author | megamage <none@none> | 2009-08-14 22:26:07 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-08-14 22:26:07 -0500 |
| commit | e94295fe42bcdd419420721733f9d8db81883552 (patch) | |
| tree | cea509f05274a58b899016281b781444a5ce1585 /src | |
| parent | 43d35de4ffb224ec4061636e8783c06e68a8bc88 (diff) | |
*Fix function disappearanddie to make creature disappear immediately without death visual.
--HG--
branch : trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/Creature.cpp | 8 | ||||
| -rw-r--r-- | src/game/Creature.h | 6 |
2 files changed, 9 insertions, 5 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp index fc83a03237a..19eae315e9c 100644 --- a/src/game/Creature.cpp +++ b/src/game/Creature.cpp @@ -196,6 +196,14 @@ void Creature::RemoveFromWorld() } } +void Creature::DisappearAndDie() +{ + //DestroyForNearbyPlayers(); + SetVisibility(VISIBILITY_OFF); + ObjectAccessor::UpdateObjectVisibility(this); + setDeathState(JUST_DIED); +} + void Creature::SearchFormationAndPath() { if(isSummon()) diff --git a/src/game/Creature.h b/src/game/Creature.h index 08b08a2ac9e..cec6a123579 100644 --- a/src/game/Creature.h +++ b/src/game/Creature.h @@ -491,11 +491,7 @@ class TRINITY_DLL_SPEC Creature : public Unit void AddToWorld(); void RemoveFromWorld(); - void DisappearAndDie() - { - SetVisibility(VISIBILITY_OFF); - setDeathState(JUST_DIED); - } + void DisappearAndDie(); bool Create(uint32 guidlow, Map *map, uint32 phaseMask, uint32 Entry, uint32 team, float x, float y, float z, float ang, const CreatureData *data = NULL); bool LoadCreaturesAddon(bool reload = false); |
