Guest User

Untitled

a guest
May 24th, 2015
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. class spell_mortar_animate : public SpellScriptLoader
  2. {
  3. public:
  4. spell_mortar_animate() : SpellScriptLoader("spell_mortar_animate") { }
  5.  
  6. class spell_mortar_animate_SpellScript : public SpellScript
  7. {
  8. PrepareSpellScript(spell_mortar_animate_SpellScript);
  9.  
  10. void Activate(SpellEffIndex index)
  11. {
  12. PreventHitDefaultEffect(index);
  13. GetHitGObj()->SendCustomAnim(0);
  14. }
  15.  
  16. void Register() OVERRIDE
  17. {
  18. OnEffectHitTarget += SpellEffectFn(spell_mortar_animate_SpellScript::Activate, EFFECT_0, SPELL_EFFECT_ACTIVATE_OBJECT);
  19. }
  20. };
  21.  
  22. SpellScript* GetSpellScript() const OVERRIDE
  23. {
  24. return new spell_mortar_animate_SpellScript();
  25. }
  26. };
Advertisement
Add Comment
Please, Sign In to add comment