mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 17:05:44 +01:00
Core/Spells: fixed Fate Rune of Unsurpassed Vigor
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
DELETE FROM `spell_script_names` WHERE spell_id=7434;
|
||||
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
|
||||
(7434,'spell_item_fate_rune_of_unsurpassed_vigor');
|
||||
@@ -383,6 +383,45 @@ class spell_item_echoes_of_light : public SpellScriptLoader
|
||||
}
|
||||
};
|
||||
|
||||
// 7434 - Fate Rune of Unsurpassed Vigor
|
||||
enum FateRuneOfUnsurpassedVigor
|
||||
{
|
||||
SPELL_UNSURPASSED_VIGOR = 25733
|
||||
};
|
||||
|
||||
class spell_item_fate_rune_of_unsurpassed_vigor : public SpellScriptLoader
|
||||
{
|
||||
public:
|
||||
spell_item_fate_rune_of_unsurpassed_vigor() : SpellScriptLoader("spell_item_fate_rune_of_unsurpassed_vigor") { }
|
||||
|
||||
class spell_item_fate_rune_of_unsurpassed_vigor_AuraScript : public AuraScript
|
||||
{
|
||||
PrepareAuraScript(spell_item_fate_rune_of_unsurpassed_vigor_AuraScript);
|
||||
|
||||
bool Validate(SpellInfo const* /*spellInfo*/) override
|
||||
{
|
||||
if (!sSpellMgr->GetSpellInfo(SPELL_UNSURPASSED_VIGOR))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
void HandleProc(AuraEffect const* /*aurEff*/, ProcEventInfo& /*eventInfo*/)
|
||||
{
|
||||
GetTarget()->CastSpell(GetTarget(), SPELL_UNSURPASSED_VIGOR, true);
|
||||
}
|
||||
|
||||
void Register() override
|
||||
{
|
||||
OnEffectProc += AuraEffectProcFn(spell_item_fate_rune_of_unsurpassed_vigor_AuraScript::HandleProc, EFFECT_0, SPELL_AURA_DUMMY);
|
||||
}
|
||||
};
|
||||
|
||||
AuraScript* GetAuraScript() const override
|
||||
{
|
||||
return new spell_item_fate_rune_of_unsurpassed_vigor_AuraScript();
|
||||
}
|
||||
};
|
||||
|
||||
// http://www.wowhead.com/item=47499 Flask of the North
|
||||
// 67019 Flask of the North
|
||||
enum FlaskOfTheNorthSpells
|
||||
@@ -2607,6 +2646,7 @@ void AddSC_item_spell_scripts()
|
||||
new spell_item_desperate_defense();
|
||||
new spell_item_deviate_fish();
|
||||
new spell_item_echoes_of_light();
|
||||
new spell_item_fate_rune_of_unsurpassed_vigor();
|
||||
new spell_item_flask_of_the_north();
|
||||
new spell_item_gnomish_death_ray();
|
||||
new spell_item_make_a_wish();
|
||||
|
||||
Reference in New Issue
Block a user