mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +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());
|
((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");
|
DEBUG_FILTER_LOG(LOG_FILTER_DAMAGE, "DealDamage critter, critter dies");
|
||||||
|
|
||||||
return damage;
|
return damage;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "11575"
|
#define REVISION_NR "11576"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue