Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // 93398 - 93399 - Shooting stars
- class custom_dru_spell_shooting_stars : public SpellScriptLoader
- {
- public:
- custom_dru_spell_shooting_stars() : SpellScriptLoader("custom_dru_spell_shooting_stars") { }
- class custom_dru_spell_shooting_stars_AuraScript : public AuraScript
- {
- PrepareAuraScript(custom_dru_spell_shooting_stars_AuraScript);
- bool Validate(SpellInfo const* /*spellInfo*/)
- {
- if (!sSpellMgr->GetSpellInfo(93398) || !sSpellMgr->GetSpellInfo(93399))
- return false;
- return true;
- }
- void HandleEffectProc(AuraEffect const* aurEff, ProcEventInfo& /*eventInfo*/)
- {
- PreventDefaultAction();
- Player* caster = GetCaster()->ToPlayer();
- if (caster->GetSpellHistory()->HasCooldown(78674))
- {
- caster->CastSpell(caster, 93400, true);
- caster->GetSpellHistory()->ResetCooldown (78674,true);
- }
- }
- void Register() {
- /*hook registration here*/
- }
- };
- AuraScript* GetAuraScript() const
- {
- return new custom_dru_spell_shooting_stars_AuraScript();
- }
- };
- void AddSC_custom_druid_spell_scripts()
- {
- new custom_dru_spell_shooting_stars();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement