@@ -639,6 +639,7 @@ class ELUNA_GAME_API Eluna
639639 void OnBGDestroy (BattleGround* bg, BattleGroundTypeId bgId, uint32 instanceId);
640640
641641 /* Spell */
642+ #ifdef ELUNA_TRINITY
642643 void OnSpellCast (Spell* pSpell, bool skipCheck);
643644 bool OnAuraApplication (Aura* aura, AuraEffect const * auraEff, Unit* target, uint8 mode, bool apply);
644645 void OnAuraDispel (Aura* aura, DispelInfo* dispelInfo);
@@ -662,6 +663,31 @@ class ELUNA_GAME_API Eluna
662663 void OnSpellHit (Spell* pSpell);
663664 void OnAfterSpellHit (Spell* pSpell);
664665 void OnEffectCalcAbsorb (Spell* pSpell, DamageInfo const & damageInfo, uint32& resistAmount, int32& absorbAmount);
666+ #else
667+ void OnSpellCast (Spell* pSpell, bool skipCheck);
668+ bool OnAuraApplication (Aura* aura, Unit* target, uint8 mode, bool apply);
669+ void OnAuraDispel (Aura* aura, Unit* dispeller, uint32 dispellingSpellId, uint32 originalStacks);
670+ bool OnPeriodicTick (Aura* aura, Unit* target);
671+ void OnPeriodicUpdate (Aura* aura);
672+ void OnAuraCalcAmount (Aura* aura, int32& amount, bool & canBeRecalculated);
673+ void OnCalcPeriodic (Aura* aura, bool & isPeriodic, int32& amplitude);
674+ bool OnAuraCanProc (Aura* aura, ProcExecutionData& procInfo);
675+ bool OnAuraProc (Aura* aura, ProcExecutionData& procInfo);
676+ uint32 OnCheckCast (Spell* pSpell);
677+ void OnBeforeCast (Spell* pSpell);
678+ void OnAfterCast (Spell* pSpell);
679+ void OnObjectAreaTargetSelect (Spell* pSpell, uint8 effIndex, std::list<WorldObject*>& targets);
680+ void OnObjectTargetSelect (Spell* pSpell, uint8 effIndex, WorldObject*& target);
681+ void OnDestinationTargetSelect (Spell* pSpell, uint8 effIndex, SpellCastTargets& target);
682+ bool OnEffectLaunch (Spell* pSpell, uint8 effIndex, uint8 mode, bool preventDefault);
683+ bool OnEffectLaunchTarget (Spell* pSpell, uint8 effIndex, uint8 mode, bool preventDefault);
684+ bool OnEffectHit (Spell* pSpell, uint8 effIndex, uint8 mode, bool preventDefault);
685+ bool OnEffectHitTarget (Spell* pSpell, uint8 effIndex, uint8 mode, bool preventDefault);
686+ void OnBeforeSpellHit (Spell* pSpell, uint8 missInfo);
687+ void OnSpellHit (Spell* pSpell);
688+ void OnAfterSpellHit (Spell* pSpell);
689+ void OnEffectCalcAbsorb (Spell* pSpell, SpellNonMeleeDamage const & damageInfo, uint32& resistAmount, int32& absorbAmount);
690+ #endif
665691};
666692template <> Unit* Eluna::CHECKOBJ <Unit>(int narg, bool error);
667693template <> Object* Eluna::CHECKOBJ <Object>(int narg, bool error);
0 commit comments