Skip to content

Commit d499633

Browse files
committed
Add support for new OnAuraApplication spell hook.
1 parent 935194d commit d499633

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/server/game/Spells/Auras/SpellAuraEffects.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -720,6 +720,11 @@ void AuraEffect::HandleEffect(AuraApplication * aurApp, uint8 mode, bool apply)
720720
ApplySpellMod(aurApp->GetTarget(), apply);
721721

722722
// call scripts helping/replacing effect handlers
723+
#ifdef ELUNA
724+
if (aurApp->GetTarget())
725+
if (Eluna* e = aurApp->GetTarget()->GetEluna())
726+
e->OnAuraApplication(GetBase(), uint8(GetEffIndex()), mode, apply);
727+
#endif
723728
bool prevented = false;
724729
if (apply)
725730
prevented = GetBase()->CallScriptEffectApplyHandlers(this, aurApp, (AuraEffectHandleModes)mode);

0 commit comments

Comments
 (0)