Cmangos commits applied

Cmangos commits applied
This commit is contained in:
Charles A Edwards 2016-09-14 13:21:23 +01:00 committed by Antz
parent df3ab5df8e
commit 068c67b932
12 changed files with 261 additions and 138 deletions

View file

@ -5281,7 +5281,7 @@ bool ChatHandler::HandleResetTalentsCommand(char* args)
if (!*args && creature && creature->IsPet())
{
Unit* owner = creature->GetOwner();
if (owner && owner->GetTypeId() == TYPEID_PLAYER && ((Pet*)creature)->IsPermanentPetFor((Player*)owner))
if (owner && owner->GetTypeId() == TYPEID_PLAYER && ((Pet*)creature)->isControlled())
{
((Pet*)creature)->resetTalents(true);
((Player*)owner)->SendTalentsInfoData(true);