Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class spell_pyroblast: public SpellScriptLoader
- {
- public:
- spell_pyroblast() : SpellScriptLoader("spell_pyroblast") { }
- class spell_pyroblast_SpellScript : public SpellScript
- {
- PrepareSpellScript(spell_pyroblast_SpellScript);
- void HandleAfterCast()
- {
- if (Unit* caster = GetCaster())
- {
- if (caster->HasAura(SPELL_HOT_STREAK))
- caster->AddAura(SPELL_HOT_STREAK, caster);
- }
- }
- void Register()
- {
- AfterCast += SpellCastFn(spell_pyroblast_SpellScript::HandleAfterCast);
- }
- };
- SpellScript* GetSpellScript() const
- {
- return new spell_pyroblast_SpellScript();
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement