[svn] * Changed: .respawn now respawns only single creature if selected. <3 Seline.

* Added: .nameannounce command. Includes name of announcer.

--HG--
branch : trunk
This commit is contained in:
XTZGZoReX committed 2008-10-12 14:43:55 -05:00
1 parent 054725122f
commit a4ceeacb51
6 files changed
+25 -5

No files matched your search

+8
View File
@@ -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()));