Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // 2094 - blind
- class spell_rog_blind : public SpellScriptLoader
- {
- public:
- spell_rog_blind() : SpellScriptLoader("spell_rog_blind") { }
- class spell_rog_blind_SpellScript : public SpellScript
- {
- PrepareSpellScript(spell_rog_blind_SpellScript);
- void HandleOnHit()
- {
- if (Unit* target = GetHitUnit())
- {
- if (target->HasAuraType(SPELL_AURA_MOD_STEALTH))
- target->RemoveAurasByType(SPELL_AURA_MOD_STEALTH);
- }
- }
- void Register()
- {
- OnHit += SpellHitFn(spell_rog_blind_SpellScript::HandleOnHit);
- }
- };
- SpellScript* GetSpellScript() const
- {
- return new spell_rog_blind_SpellScript();
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement