Fix(Core/Quest): Pet issues with They're Alive! Maybe... (#9918)
This commit is contained in:
@@ -66,6 +66,16 @@ public:
|
|||||||
{
|
{
|
||||||
player->KilledMonsterCredit(NPC_EXPEDITION_RESEARCHER);
|
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;
|
spawnCreatureID = NPC_EXPEDITION_RESEARCHER;
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
|
|||||||
Reference in New Issue
Block a user