Core/AI: Add DamageEffectType and SpellInfo parameters to UnitAI::DamageTaken
Port From (https://github.com/TrinityCore/TrinityCore/commit/71c2f0af46b3ccec8c3422534e4403f3650b757d)
This commit is contained in:
@@ -2363,7 +2363,7 @@ namespace Game.Entities
|
||||
{
|
||||
UnitAI victimAI = victim.GetAI();
|
||||
if (victimAI != null)
|
||||
victimAI.DamageTaken(attacker, ref damage);
|
||||
victimAI.DamageTaken(attacker, ref damage, damagetype, spellProto);
|
||||
|
||||
UnitAI attackerAI = attacker ? attacker.GetAI() : null;
|
||||
if (attackerAI != null)
|
||||
|
||||
Reference in New Issue
Block a user