From ca8eb707d7e77fa2920115de1a35e5e3dcbac673 Mon Sep 17 00:00:00 2001 From: QAston Date: Wed, 25 May 2011 15:13:55 +0200 Subject: Core/Auras: - Use safer order of calls in AuraEffect handlers (unit modification goes before any calls which may result in linked events execution) - Allow manual removal of further effects of an aura during aura removal (so Unit::RemoveAurasByType works well in such situations) --- src/server/game/Spells/SpellScript.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server/game/Spells/SpellScript.h') diff --git a/src/server/game/Spells/SpellScript.h b/src/server/game/Spells/SpellScript.h index 0462accef9f..68b6f987169 100755 --- a/src/server/game/Spells/SpellScript.h +++ b/src/server/game/Spells/SpellScript.h @@ -460,13 +460,13 @@ class AuraScript : public _SpellScript // AuraScript interface // hooks to which you can attach your functions // - // executed when periodic aura effect is applied with specified mode to target + // executed when aura effect is applied with specified mode to target // example: OnEffectApply += AuraEffectApplyFn(class::function, EffectIndexSpecifier, EffectAuraNameSpecifier, AuraEffectHandleModes); // where function is: void function (AuraEffect const* aurEff, AuraEffectHandleModes mode); HookList OnEffectApply; #define AuraEffectApplyFn(F, I, N, M) EffectApplyHandlerFunction(&F, I, N, M) - // executed when periodic aura effect is removed with specified mode from target + // executed when aura effect is removed with specified mode from target // example: OnEffectRemove += AuraEffectRemoveFn(class::function, EffectIndexSpecifier, EffectAuraNameSpecifier, AuraEffectHandleModes); // where function is: void function (AuraEffect const* aurEff, AuraEffectHandleModes mode); HookList OnEffectRemove; -- cgit v1.2.3