mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 10:37:03 +00:00
[11576] Call OnCreatureDeath at critters death also.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
2d82b4bccc
commit
9e83454a23
2 changed files with 4 additions and 1 deletions
|
|
@ -595,6 +595,9 @@ uint32 Unit::DealDamage(Unit *pVictim, uint32 damage, CleanDamage const* cleanDa
|
|||
((Player*)this)->KilledMonster(normalInfo, pVictim->GetObjectGuid());
|
||||
}
|
||||
|
||||
if (InstanceData* mapInstance = pVictim->GetInstanceData())
|
||||
mapInstance->OnCreatureDeath(((Creature*)pVictim));
|
||||
|
||||
DEBUG_FILTER_LOG(LOG_FILTER_DAMAGE, "DealDamage critter, critter dies");
|
||||
|
||||
return damage;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue