Core/ZoneScript: Implemented OnCreatureDeath function.
Signed-off-by: Manuel <[email protected]>
This commit is contained in:
@@ -1525,6 +1525,9 @@ void Creature::setDeathState(DeathState s)
|
||||
if (m_formation && m_formation->getLeader() == this)
|
||||
m_formation->FormationReset(true);
|
||||
|
||||
if (ZoneScript* zoneScript = GetZoneScript())
|
||||
zoneScript->OnCreatureDeath(this);
|
||||
|
||||
if ((canFly() || IsFlying()) && FallGround())
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user