feat(Core/Unit): Add SpellSchoolMask info to the DamageDealt() hook (#21411)

This commit is contained in:
Andrew
2025-02-12 08:16:02 -03:00
committed by GitHub
parent 3a41901154
commit b17d69b33c
8 changed files with 11 additions and 11 deletions

View File

@@ -893,7 +893,7 @@ void SmartAI::IsSummonedBy(WorldObject* summoner)
GetScript()->ProcessEventsFor(SMART_EVENT_JUST_SUMMONED, summoner->ToUnit(), 0, 0, false, nullptr, summoner->ToGameObject());
}
void SmartAI::DamageDealt(Unit* doneTo, uint32& damage, DamageEffectType /*damagetype*/)
void SmartAI::DamageDealt(Unit* doneTo, uint32& damage, DamageEffectType /*damagetype*/, SpellSchoolMask /*damageSchoolMask*/)
{
GetScript()->ProcessEventsFor(SMART_EVENT_DAMAGED_TARGET, doneTo, damage);
}