From 93ecd5ba076557993002b345f0ec31f015dbf892 Mon Sep 17 00:00:00 2001 From: Biglad Date: Tue, 13 Oct 2009 14:24:58 +0100 Subject: * Update .start to work while in ghost form, send ghost to nearest graveyard. use: /g .start when dead --HG-- branch : trunk --- src/game/Level0.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') 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); -- cgit v1.2.3