aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/Level0.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/game/Level0.cpp b/src/game/Level0.cpp
index c8e39b134a8..890e8a9c3c9 100644
--- a/src/game/Level0.cpp
+++ b/src/game/Level0.cpp
@@ -78,6 +78,13 @@ bool ChatHandler::HandleStartCommand(const char* /*args*/)
SetSentErrorMessage(true);
return false;
}
+
+ if((chr->isDead()) || (chr->HasFlag(PLAYER_FLAGS, PLAYER_FLAGS_GHOST)))
+ {
+ // if player is dead and stuck, send ghost to graveyard
+ chr->RepopAtGraveyard();
+ return true;
+ }
// cast spell Stuck
chr->CastSpell(chr,7355,false);