Core/AI: Implemented OnHealthDepleted hook
Port From (https://github.com/TrinityCore/TrinityCore/commit/ea134c0eae83b4cdbb5f0e941ed867a144bb01f6)
This commit is contained in:
@@ -942,7 +942,10 @@ namespace Game.Entities
|
||||
// Call creature just died function
|
||||
CreatureAI ai = creature.GetAI();
|
||||
if (ai != null)
|
||||
{
|
||||
ai.OnHealthDepleted(attacker, true);
|
||||
ai.JustDied(attacker);
|
||||
}
|
||||
|
||||
TempSummon summon = creature.ToTempSummon();
|
||||
if (summon != null)
|
||||
|
||||
Reference in New Issue
Block a user