Fix(Core/Quest): Pet issues with They're Alive! Maybe... (#9918)

This commit is contained in:
Nefertumm
2022-01-03 17:09:25 -03:00
committed by GitHub
parent d90e368166
commit d810ddf042

View File

@@ -66,6 +66,16 @@ public:
{
player->KilledMonsterCredit(NPC_EXPEDITION_RESEARCHER);
}
else if (killer->IsPet())
{
if (Unit* owner = killer->GetOwner())
{
if (owner->GetTypeId() == TYPEID_PLAYER)
{
owner->ToPlayer()->KilledMonsterCredit(NPC_EXPEDITION_RESEARCHER);
}
}
}
spawnCreatureID = NPC_EXPEDITION_RESEARCHER;
break;
case 1: