mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 02:25:38 +01:00
Merge pull request #8374 from Huri/4.3.4
Core/Spells: Fixed Arcane Brilliance, Dalaran Brilliance, Power Word: Fo...
This commit is contained in:
@@ -3306,6 +3306,35 @@ class spell_gen_gift_of_naaru : public SpellScriptLoader
|
||||
}
|
||||
};
|
||||
|
||||
class spell_gen_increase_stats_buff : public SpellScriptLoader
|
||||
{
|
||||
public:
|
||||
spell_gen_increase_stats_buff(char const* scriptName) : SpellScriptLoader(scriptName) { }
|
||||
|
||||
class spell_gen_increase_stats_buff_SpellScript : public SpellScript
|
||||
{
|
||||
PrepareSpellScript(spell_gen_increase_stats_buff_SpellScript);
|
||||
|
||||
void HandleDummy(SpellEffIndex /*effIndex*/)
|
||||
{
|
||||
if (GetHitUnit()->IsInRaidWith(GetCaster()))
|
||||
GetCaster()->CastSpell(GetCaster(), GetEffectValue() + 1, true); // raid buff
|
||||
else
|
||||
GetCaster()->CastSpell(GetHitUnit(), GetEffectValue(), true); // single-target buff
|
||||
}
|
||||
|
||||
void Register()
|
||||
{
|
||||
OnEffectHitTarget += SpellEffectFn(spell_gen_increase_stats_buff_SpellScript::HandleDummy, EFFECT_0, SPELL_EFFECT_DUMMY);
|
||||
}
|
||||
};
|
||||
|
||||
SpellScript* GetSpellScript() const
|
||||
{
|
||||
return new spell_gen_increase_stats_buff_SpellScript();
|
||||
}
|
||||
};
|
||||
|
||||
void AddSC_generic_spell_scripts()
|
||||
{
|
||||
new spell_gen_absorb0_hitlimit1();
|
||||
@@ -3382,4 +3411,11 @@ void AddSC_generic_spell_scripts()
|
||||
new spell_gen_upper_deck_create_foam_sword();
|
||||
new spell_gen_bonked();
|
||||
new spell_gen_gift_of_naaru();
|
||||
new spell_gen_increase_stats_buff("spell_pal_blessing_of_kings");
|
||||
new spell_gen_increase_stats_buff("spell_pal_blessing_of_might");
|
||||
new spell_gen_increase_stats_buff("spell_dru_mark_of_the_wild");
|
||||
new spell_gen_increase_stats_buff("spell_pri_power_word_fortitude");
|
||||
new spell_gen_increase_stats_buff("spell_pri_shadow_protection");
|
||||
new spell_gen_increase_stats_buff("spell_mage_arcane_brilliance");
|
||||
new spell_gen_increase_stats_buff("spell_mage_dalaran_brilliance");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user