Advertisement
Guest User

Untitled

a guest
Jun 24th, 2014
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.75 KB | None | 0 0
  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.         PreventDefaultAction();
  14.         }
  15.        
  16.         void Register()
  17.         {
  18.             OnEffectRemove += AuraEffectRemoveFn(Spell_Vanish_SpellScript::HandleOnEffectRemove, EFFECT_0, SPELL_AURA_DUMMY, AURA_EFFECT_HANDLE_REAL);
  19.         }
  20.  
  21.         AuraScript* GetAuraScript() const
  22.         {
  23.             return new Spell_Vanish_SpellScript();
  24.         }
  25.     };
  26.  
  27. void AddSC_Spell_Vanish()
  28. {
  29.     new Spell_Vanish_SpellScript();
  30. }
  31. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement