[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:
1 parent
054725122f
commit
a4ceeacb51
6 files changed
+25
-5
No files matched your search
@@ -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()));
|
||||
|
||||
Reference in new issue
Block a user