mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-02 15:17:27 +01:00
* Modify .respawn command handler so that it does not work on pets, fixes crash in underlying object functions.
--HG-- branch : trunk
This commit is contained in:
@@ -6188,7 +6188,7 @@ bool ChatHandler::HandleRespawnCommand(const char* /*args*/)
|
||||
Unit* target = getSelectedUnit();
|
||||
if(pl->GetSelection() && target)
|
||||
{
|
||||
if(target->GetTypeId()!=TYPEID_UNIT)
|
||||
if(target->GetTypeId()!=TYPEID_UNIT || target->isPet())
|
||||
{
|
||||
SendSysMessage(LANG_SELECT_CREATURE);
|
||||
SetSentErrorMessage(true);
|
||||
|
||||
Reference in New Issue
Block a user