Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class spell_mortar_animate : public SpellScriptLoader
- {
- public:
- spell_mortar_animate() : SpellScriptLoader("spell_mortar_animate") { }
- class spell_mortar_animate_SpellScript : public SpellScript
- {
- PrepareSpellScript(spell_mortar_animate_SpellScript);
- void Activate(SpellEffIndex index)
- {
- PreventHitDefaultEffect(index);
- GetHitGObj()->SendCustomAnim(0);
- }
- void Register() OVERRIDE
- {
- OnEffectHitTarget += SpellEffectFn(spell_mortar_animate_SpellScript::Activate, EFFECT_0, SPELL_EFFECT_ACTIVATE_OBJECT);
- }
- };
- SpellScript* GetSpellScript() const OVERRIDE
- {
- return new spell_mortar_animate_SpellScript();
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment