diff options
Diffstat (limited to 'src/game/Level3.cpp')
-rw-r--r-- | src/game/Level3.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/game/Level3.cpp b/src/game/Level3.cpp index c79bd3db21e..f860318bb06 100644 --- a/src/game/Level3.cpp +++ b/src/game/Level3.cpp @@ -4853,6 +4853,14 @@ bool ChatHandler::HandleBanListCommand(const char* args) bool ChatHandler::HandleRespawnCommand(const char* /*args*/) { + Unit* target = getSelectedUnit(); + + if(target && target->GetTypeId() == TYPEID_UNIT && target->isDead()) + { + ((Creature*)target)->Respawn(); + return true; + } + Player* pl = m_session->GetPlayer(); CellPair p(MaNGOS::ComputeCellPair(pl->GetPositionX(), pl->GetPositionY())); |