Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define NPC_STRATHOLMES_CRATES 30996
- class spell_q13149_arcane_disruption : public SpellScriptLoader
- {
- public:
- spell_q13149_arcane_disruption() : SpellScriptLoader("spell_q13149_arcane_disruption") { }
- class spell_q13149_arcane_disruption_AuraScript : public AuraScript
- {
- PrepareAuraScript(spell_q13149_arcane_disruption_AuraScript)
- void ApplyEffect(AuraEffect const* /*aurEff*/, AuraApplication const* aurApp, AuraEffectHandleModes /*mode*/)
- {
- if (Unit* pTarget = aurApp->GetTarget())
- if (pTarget->GetTypeId() == TYPEID_UNIT && pTarget->GetEntry() == NPC_STRATHOLMES_CRATES)
- if (Unit* pCaster = GetCaster())
- if (pCaster->GetTypeId() == TYPEID_PLAYER)
- pCaster->ToPlayer()->KilledMonsterCredit(NPC_STRATHOLMES_CRATES, 0);
- }
- void Register()
- {
- OnEffectApply += AuraEffectApplyFn(spell_q13149_arcane_disruption_AuraScript::ApplyEffect, EFFECT_0, SPELL_AURA_DUMMY, AURA_EFFECT_HANDLE_REAL);
- }
- };
- AuraScript* GetAuraScript() const
- {
- return new spell_q13149_arcane_disruption_AuraScript();
- }
- };
- /*
- -- Dispelling Illusions
- DELETE FROM spell_script_names WHERE spell_id = 49590;
- INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
- (49590, 'spell_q13149_arcane_disruption');
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement