Core/Spells - Idol of the Crying Wind;
+ Fixing typo;
This commit is contained in:
1 parent
8ffafdc859
commit
1fa0177bb0
3 files changed
+36
-3
No files matched your search
@@ -32,7 +32,8 @@ enum DruidSpells
|
||||
DRUID_LIFEBLOOM_FINAL_HEAL = 33778,
|
||||
DRUID_LIFEBLOOM_ENERGIZE = 64372,
|
||||
DRUID_SURVIVAL_INSTINCTS = 50322,
|
||||
DRUID_SAVAGE_ROAR = 62071
|
||||
DRUID_SAVAGE_ROAR = 62071,
|
||||
SPELL_DRUID_ITEM_T8_BALANCE_RELIC = 64950,
|
||||
};
|
||||
|
||||
// 54846 Glyph of Starfire
|
||||
@@ -615,6 +616,34 @@ class spell_dru_survival_instincts : public SpellScriptLoader
|
||||
}
|
||||
};
|
||||
|
||||
class spell_dru_insect_swarm : public SpellScriptLoader
|
||||
{
|
||||
public:
|
||||
spell_dru_insect_swarm() : SpellScriptLoader("spell_dru_insect_swarm") { }
|
||||
|
||||
class spell_dru_insect_swarm_AuraScript : public AuraScript
|
||||
{
|
||||
PrepareAuraScript(spell_dru_insect_swarm_AuraScript);
|
||||
|
||||
void CalculateAmount(AuraEffect const* /*aurEff*/, int32 & amount, bool & /*canBeRecalculated*/)
|
||||
{
|
||||
if (Unit* caster = GetCaster())
|
||||
if (AuraEffect const* aurEff = caster->GetAuraEffect(SPELL_DRUID_ITEM_T8_BALANCE_RELIC, EFFECT_0))
|
||||
amount += aurEff->GetAmount();
|
||||
}
|
||||
|
||||
void Register()
|
||||
{
|
||||
DoEffectCalcAmount += AuraEffectCalcAmountFn(spell_dru_insect_swarm_AuraScript::CalculateAmount, EFFECT_0, SPELL_AURA_PERIODIC_DAMAGE);
|
||||
}
|
||||
};
|
||||
|
||||
AuraScript* GetAuraScript() const
|
||||
{
|
||||
return new spell_dru_insect_swarm_AuraScript();
|
||||
}
|
||||
};
|
||||
|
||||
void AddSC_druid_spell_scripts()
|
||||
{
|
||||
new spell_dru_glyph_of_starfire();
|
||||
@@ -629,4 +658,5 @@ void AddSC_druid_spell_scripts()
|
||||
new spell_dru_predatory_strikes();
|
||||
new spell_dru_savage_roar();
|
||||
new spell_dru_survival_instincts();
|
||||
new spell_dru_insect_swarm();
|
||||
}
|
||||
Reference in new issue
Block a user