mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[8354] Update kill credit for normal creature entry including heroic case.
This commit is contained in:
parent
9f6dfa282f
commit
74a9624cc3
2 changed files with 4 additions and 3 deletions
|
|
@ -452,9 +452,10 @@ uint32 Unit::DealDamage(Unit *pVictim, uint32 damage, CleanDamage const* cleanDa
|
|||
if(cInfo && cInfo->lootid)
|
||||
pVictim->SetUInt32Value(UNIT_DYNAMIC_FLAGS, UNIT_DYNFLAG_LOOTABLE);
|
||||
|
||||
// some critters required for quests
|
||||
// some critters required for quests (need normal entry instead possible heroic in any cases)
|
||||
if(GetTypeId() == TYPEID_PLAYER)
|
||||
((Player*)this)->KilledMonster(cInfo ,pVictim->GetGUID());
|
||||
if(CreatureInfo const* normalInfo = objmgr.GetCreatureTemplate(pVictim->GetEntry()))
|
||||
((Player*)this)->KilledMonster(normalInfo,pVictim->GetGUID());
|
||||
|
||||
return damage;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue