[10246] Restore work killCredit and kill achievements in regular difficulty instances.

This commit is contained in:
VladimirMangos 2010-07-22 13:08:43 +04:00
parent 384915b0d0
commit 9d8b66cf93
4 changed files with 6 additions and 5 deletions

View file

@ -1842,7 +1842,8 @@ static void RewardGroupAtKill_helper(Player* pGroupGuy, Unit* pVictim, uint32 co
{
// normal creature (not pet/etc) can be only in !PvP case
if(pVictim->GetTypeId()==TYPEID_UNIT)
pGroupGuy->KilledMonster(((Creature*)pVictim)->GetCreatureInfo(), pVictim->GetObjectGuid());
if(CreatureInfo const* normalInfo = ObjectMgr::GetCreatureTemplate(pVictim->GetEntry()))
pGroupGuy->KilledMonster(normalInfo, pVictim->GetObjectGuid());
}
}
}