*Fix function disappearanddie to make creature disappear immediately without death visual.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-08-14 22:26:07 -05:00
parent 43d35de4ff
commit e94295fe42
2 changed files with 9 additions and 5 deletions
+8
View File
@@ -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())
+1 -5
View File
@@ -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);