mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 01:37:37 +01:00
* 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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user