Core/AI: Add DamageEffectType and SpellInfo parameters to UnitAI::DamageTaken

Port From (https://github.com/TrinityCore/TrinityCore/commit/71c2f0af46b3ccec8c3422534e4403f3650b757d)
This commit is contained in:
hondacrx
2022-05-29 20:34:44 -04:00
parent 3286187286
commit 0534356aff
6 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -676,7 +676,7 @@ namespace Game.AI
GetScript().ProcessEventsFor(SmartEvents.SpellHitTarget, target.ToUnit(), 0, 0, false, spellInfo, target.ToGameObject());
}
public override void DamageTaken(Unit attacker, ref uint damage)
public override void DamageTaken(Unit attacker, ref uint damage, DamageEffectType damageType, SpellInfo spellInfo = null)
{
GetScript().ProcessEventsFor(SmartEvents.Damaged, attacker, damage);