Advertisement
Rushor

Untitled

Sep 19th, 2014
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. class spell_pyroblast: public SpellScriptLoader
  2. {
  3. public:
  4. spell_pyroblast() : SpellScriptLoader("spell_pyroblast") { }
  5.  
  6. class spell_pyroblast_SpellScript : public SpellScript
  7. {
  8. PrepareSpellScript(spell_pyroblast_SpellScript);
  9.  
  10. void HandleAfterCast()
  11. {
  12. if (Unit* caster = GetCaster())
  13. {
  14. if (caster->HasAura(SPELL_HOT_STREAK))
  15. caster->AddAura(SPELL_HOT_STREAK, caster);
  16. }
  17. }
  18.  
  19. void Register()
  20. {
  21. AfterCast += SpellCastFn(spell_pyroblast_SpellScript::HandleAfterCast);
  22. }
  23. };
  24.  
  25. SpellScript* GetSpellScript() const
  26. {
  27. return new spell_pyroblast_SpellScript();
  28. }
  29. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement