Core/AI: Implement OnAuraApplied and OnAuraRemoved hooks

Port From (https://github.com/TrinityCore/TrinityCore/commit/d1e07ac6553c7ae1e3296fc044247f0d0f95d267)
This commit is contained in:
Hondacrx
2025-12-08 15:10:55 -05:00
parent a478baf421
commit 6da69c8263
6 changed files with 40 additions and 1 deletions
+10
View File
@@ -642,6 +642,16 @@ namespace Game.AI
GetScript().ProcessEventsFor(SmartEvents.OnSpellStart, null, 0, 0, false, spellInfo);
}
public override void OnAuraApplied(AuraApplication aurApp)
{
GetScript().ProcessEventsFor(SmartEvents.OnAuraApplied, null, 0, 0, false, aurApp.GetBase().GetSpellInfo());
}
public override void OnAuraRemoved(AuraApplication aurApp)
{
GetScript().ProcessEventsFor(SmartEvents.OnAuraRemoved, null, 0, 0, false, aurApp.GetBase().GetSpellInfo());
}
public override void DamageTaken(Unit attacker, ref uint damage, DamageEffectType damageType, SpellInfo spellInfo = null)
{
GetScript().ProcessEventsFor(SmartEvents.Damaged, attacker, damage);