Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "ScriptPCH.h"
- #include "SpellScript.h"
- class Spell_Vanish : public SpellScriptLoader
- {
- public:
- Spell_Vanish(): SpellScriptLoader("Spell_Vanish") {}
- class Spell_Vanish_SpellScript : public AuraScript
- {
- PrepareSpellScript(Spell_Vanish_SpellScript);
- void HandleOnEffectRemove(constAuraEffectPtr /*aurEff*//*, AuraEffectHandleModes /*mode*/)
- {
- PreventDefaultAction();
- }
- void Register()
- {
- OnEffectRemove += AuraEffectRemoveFn(Spell_Vanish_SpellScript::HandleOnEffectRemove, EFFECT_0, SPELL_AURA_DUMMY, AURA_EFFECT_HANDLE_REAL);
- }
- AuraScript* GetAuraScript() const
- {
- return new Spell_Vanish_SpellScript();
- }
- };
- void AddSC_Spell_Vanish()
- {
- new Spell_Vanish_SpellScript();
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement