Merge branch '4.3.4' of https://gitlab.com/trinitycore/TrinityCore_434 into 4.3.4
# Conflicts: # src/server/scripts/Spells/spell_druid.cpp
This commit is contained in:
commit
b0ef0f101f
2 files changed
+31
No files matched your search
@@ -1703,6 +1703,29 @@ class spell_dru_tree_of_life : public SpellScriptLoader
|
||||
}
|
||||
};
|
||||
|
||||
// 77495 - Harmony
|
||||
class spell_dru_harmony : public AuraScript
|
||||
{
|
||||
PrepareAuraScript(spell_dru_harmony);
|
||||
|
||||
bool Validate(SpellInfo const* /*spellInfo*/) override
|
||||
{
|
||||
return ValidateSpellInfo({ SPELL_DRUID_HARMONY });
|
||||
}
|
||||
|
||||
void HandleProc(AuraEffect const* aurEff, ProcEventInfo& /*eventInfo*/)
|
||||
{
|
||||
PreventDefaultAction();
|
||||
int32 amount = aurEff->GetAmount();
|
||||
GetTarget()->CastCustomSpell(SPELL_DRUID_HARMONY, SPELLVALUE_BASE_POINT0, amount, GetTarget(), true, nullptr, aurEff);
|
||||
}
|
||||
|
||||
void Register() override
|
||||
{
|
||||
OnEffectProc += AuraEffectProcFn(spell_dru_harmony::HandleProc, EFFECT_0, SPELL_AURA_ADD_PCT_MODIFIER);
|
||||
}
|
||||
};
|
||||
|
||||
void AddSC_druid_spell_scripts()
|
||||
{
|
||||
RegisterAuraScript(spell_dru_berserk);
|
||||
@@ -1717,6 +1740,7 @@ void AddSC_druid_spell_scripts()
|
||||
new spell_dru_enrage();
|
||||
new spell_dru_glyph_of_starfire();
|
||||
new spell_dru_glyph_of_starfire_proc();
|
||||
RegisterAuraScript(spell_dru_harmony);
|
||||
new spell_dru_idol_lifebloom();
|
||||
new spell_dru_innervate();
|
||||
new spell_dru_insect_swarm();
|
||||
|
||||
Reference in new issue
Block a user