diff options
author | Biglad <none@none> | 2009-10-13 14:24:58 +0100 |
---|---|---|
committer | Biglad <none@none> | 2009-10-13 14:24:58 +0100 |
commit | 93ecd5ba076557993002b345f0ec31f015dbf892 (patch) | |
tree | 405bc05a5696121176ec9acf2670f075dc705f67 /src/game/Level0.cpp | |
parent | 06849d6a81090a2d4c3afef5905b22d114077a42 (diff) |
* Update .start to work while in ghost form, send ghost to nearest graveyard. use: /g .start when dead
--HG--
branch : trunk
Diffstat (limited to 'src/game/Level0.cpp')
-rw-r--r-- | src/game/Level0.cpp | 7 |
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); |