mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 18:10:26 +00:00
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);
|
||||
}
|
||||
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:
|
||||
|
||||
Reference in New Issue
Block a user