View difference between Paste ID: DL6vk4xP and gj7wcPJV
SHOW: | | - or go back to the newest paste.
1
#include "ScriptPCH.h"
2
#include "SpellScript.h"
3
4
class Spell_Vanish : public SpellScriptLoader
5
{
6
public:
7-
	Spell_Vanish() : SpellScriptLoader("Spell_Vanish") { }
7+
    Spell_Vanish(): SpellScriptLoader("Spell_Vanish") {}
8
9-
	class Spell_Vanish_SpellScript : public AuraScript
9+
    class Spell_Vanish_SpellScript : public AuraScript
10-
	{
10+
    {
11-
		PrepareSpellScript(Spell_Vanish_SpellScript);
11+
        PrepareSpellScript(Spell_Vanish_SpellScript);
12-
		void HandleOnEffectRemove(constAuraEffectPtr /*aurEff*//*, AuraEffectHandleModes /*mode*/)																								 {
12+
        void HandleOnEffectRemove(constAuraEffectPtr /*aurEff*//*, AuraEffectHandleModes /*mode*/)
13-
		PreventDefaultAction();
13+
        {
14-
		}
14+
            PreventDefaultAction();
15-
		
15+
        }
16-
		void Register()
16+
17-
		{
17+
        void Register()
18-
			OnEffectRemove += AuraEffectRemoveFn(Spell_Vanish_SpellScript::HandleOnEffectRemove, EFFECT_0, SPELL_AURA_DUMMY, AURA_EFFECT_HANDLE_REAL);
18+
        {
19-
		}
19+
            OnEffectRemove += AuraEffectRemoveFn(Spell_Vanish_SpellScript::HandleOnEffectRemove, EFFECT_0, SPELL_AURA_DUMMY, AURA_EFFECT_HANDLE_REAL);
20
        }
21-
		AuraScript* GetAuraScript() const
21+
22-
		{
22+
        AuraScript* GetAuraScript() const
23-
			return new Spell_Vanish_SpellScript();
23+
        {
24-
		}
24+
            return new Spell_Vanish_SpellScript();
25-
	};
25+
        }
26
    };
27-
void AddSC_Spell_Vanish()
27+
28
    void AddSC_Spell_Vanish()
29-
	new Spell_Vanish_SpellScript();
29+
    {
30-
}
30+
        new Spell_Vanish_SpellScript();
31
    }
32
};