Advertisement
Rochet2

Untitled

Jun 24th, 2014
387
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include "ScriptPCH.h"
  2. #include "SpellScript.h"
  3.  
  4. class Spell_Vanish : public SpellScriptLoader
  5. {
  6. public:
  7.     Spell_Vanish(): SpellScriptLoader("Spell_Vanish") {}
  8.  
  9.     class Spell_Vanish_SpellScript : public AuraScript
  10.     {
  11.         PrepareSpellScript(Spell_Vanish_SpellScript);
  12.         void HandleOnEffectRemove(constAuraEffectPtr /*aurEff*//*, AuraEffectHandleModes /*mode*/)
  13.         {
  14.             PreventDefaultAction();
  15.         }
  16.  
  17.         void Register()
  18.         {
  19.             OnEffectRemove += AuraEffectRemoveFn(Spell_Vanish_SpellScript::HandleOnEffectRemove, EFFECT_0, SPELL_AURA_DUMMY, AURA_EFFECT_HANDLE_REAL);
  20.         }
  21.  
  22.         AuraScript* GetAuraScript() const
  23.         {
  24.             return new Spell_Vanish_SpellScript();
  25.         }
  26.     };
  27.  
  28.     void AddSC_Spell_Vanish()
  29.     {
  30.         new Spell_Vanish_SpellScript();
  31.     }
  32. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement