diff options
| author | QAston <qaston@gmail.com> | 2011-05-25 15:13:55 +0200 |
|---|---|---|
| committer | QAston <qaston@gmail.com> | 2011-05-25 15:13:55 +0200 |
| commit | ca8eb707d7e77fa2920115de1a35e5e3dcbac673 (patch) | |
| tree | 2843334b9e3ce47adce97eeb166ee656996ddad4 /src/server/game/Spells/SpellScript.h | |
| parent | 209b5313ff723b588eb66724b2c1753b91e992b0 (diff) | |
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)
Diffstat (limited to 'src/server/game/Spells/SpellScript.h')
| -rwxr-xr-x | src/server/game/Spells/SpellScript.h | 4 |
1 files changed, 2 insertions, 2 deletions
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<EffectApplyHandler> 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<EffectApplyHandler> OnEffectRemove; |
