aboutsummaryrefslogtreecommitdiff
path: root/src/game/Creature.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-14 22:26:07 -0500
committermegamage <none@none>2009-08-14 22:26:07 -0500
commite94295fe42bcdd419420721733f9d8db81883552 (patch)
treecea509f05274a58b899016281b781444a5ce1585 /src/game/Creature.cpp
parent43d35de4ffb224ec4061636e8783c06e68a8bc88 (diff)
*Fix function disappearanddie to make creature disappear immediately without death visual.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Creature.cpp')
-rw-r--r--src/game/Creature.cpp8
1 files changed, 8 insertions, 0 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())