* Update .start to work while in ghost form, send ghost to nearest graveyard. use: /g .start when dead

--HG--
branch : trunk
This commit is contained in:
Biglad
2009-10-13 14:24:58 +01:00
parent 06849d6a81
commit 93ecd5ba07

View File

@@ -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);