aboutsummaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-13 10:21:57 -0500
committermegamage <none@none>2009-08-13 10:21:57 -0500
commit656cb8a3182f638f1247b6d9e71f2c88a9d972a4 (patch)
treef72dbbf3566148d2a4cb34ffd27e4efb328c90c5 /src/game
parentc84f63d431e9ecdfd72c33281602e4cab7966cca (diff)
*Remove some incorrect use of removefromworld in scripts.
--HG-- branch : trunk
Diffstat (limited to 'src/game')
-rw-r--r--src/game/Creature.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/Creature.h b/src/game/Creature.h
index 2c882cad949..61202b4769b 100644
--- a/src/game/Creature.h
+++ b/src/game/Creature.h
@@ -490,6 +490,12 @@ class TRINITY_DLL_SPEC Creature : public Unit
void AddToWorld();
void RemoveFromWorld();
+ void DisappearAndDie()
+ {
+ SetVisibility(VISIBILITY_OFF);
+ setDeathState(JUST_DIED);
+ }
+
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);
void SelectLevel(const CreatureInfo *cinfo);