Fix(Core/Quest): Pet issues with They're Alive! Maybe... (#9918)
This commit is contained in:
parent
d90e368166
commit
d810ddf042
1 changed files with 10 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue