diff options
| -rw-r--r-- | sql/updates/world/2013_07_22_05_world_spell_spell_script_names_434.sql | 1 | ||||
| -rw-r--r-- | src/server/scripts/Spells/spell_hunter.cpp | 1 | ||||
| -rw-r--r-- | src/server/scripts/Spells/spell_mage.cpp | 46 |
3 files changed, 1 insertions, 47 deletions
diff --git a/sql/updates/world/2013_07_22_05_world_spell_spell_script_names_434.sql b/sql/updates/world/2013_07_22_05_world_spell_spell_script_names_434.sql new file mode 100644 index 00000000000..13d7af101bf --- /dev/null +++ b/sql/updates/world/2013_07_22_05_world_spell_spell_script_names_434.sql @@ -0,0 +1 @@ +DELETE FROM `spell_script_names` WHERE `ScriptName`='spell_mage_burnout'; diff --git a/src/server/scripts/Spells/spell_hunter.cpp b/src/server/scripts/Spells/spell_hunter.cpp index d1fbd533150..c43ca7271e0 100644 --- a/src/server/scripts/Spells/spell_hunter.cpp +++ b/src/server/scripts/Spells/spell_hunter.cpp @@ -170,7 +170,6 @@ class spell_hun_chimera_shot : public SpellScriptLoader void HandleScriptEffect(SpellEffIndex /*effIndex*/) { - Unit* caster = GetCaster(); GetCaster()->CastSpell(GetCaster(), SPELL_HUNTER_CHIMERA_SHOT_HEAL, true); if (Aura* aur = GetHitUnit()->GetAura(SPELL_HUNTER_SERPENT_STING)) diff --git a/src/server/scripts/Spells/spell_mage.cpp b/src/server/scripts/Spells/spell_mage.cpp index 8adac7be0e2..f209cb281d3 100644 --- a/src/server/scripts/Spells/spell_mage.cpp +++ b/src/server/scripts/Spells/spell_mage.cpp @@ -257,51 +257,6 @@ class spell_mage_blazing_speed : public SpellScriptLoader } }; -// -44449 - Burnout -class spell_mage_burnout : public SpellScriptLoader -{ - public: - spell_mage_burnout() : SpellScriptLoader("spell_mage_burnout") { } - - class spell_mage_burnout_AuraScript : public AuraScript - { - PrepareAuraScript(spell_mage_burnout_AuraScript); - - bool Validate(SpellInfo const* /*spellInfo*/) OVERRIDE - { - if (!sSpellMgr->GetSpellInfo(SPELL_MAGE_BURNOUT)) - return false; - return true; - } - - bool CheckProc(ProcEventInfo& eventInfo) - { - return eventInfo.GetDamageInfo()->GetSpellInfo(); // eventInfo.GetSpellInfo() - } - - void HandleProc(AuraEffect const* aurEff, ProcEventInfo& eventInfo) - { - PreventDefaultAction(); - - int32 mana = int32(eventInfo.GetDamageInfo()->GetSpellInfo()->CalcPowerCost(GetTarget(), eventInfo.GetDamageInfo()->GetSchoolMask())); - mana = CalculatePct(mana, aurEff->GetAmount()); - - GetTarget()->CastCustomSpell(SPELL_MAGE_BURNOUT, SPELLVALUE_BASE_POINT0, mana, GetTarget(), true, NULL, aurEff); - } - - void Register() OVERRIDE - { - DoCheckProc += AuraCheckProcFn(spell_mage_burnout_AuraScript::CheckProc); - OnEffectProc += AuraEffectProcFn(spell_mage_burnout_AuraScript::HandleProc, EFFECT_1, SPELL_AURA_DUMMY); - } - }; - - AuraScript* GetAuraScript() const OVERRIDE - { - return new spell_mage_burnout_AuraScript(); - } -}; - // 42208 - Blizzard /// Updated 4.3.4 class spell_mage_blizzard : public SpellScriptLoader @@ -1441,7 +1396,6 @@ void AddSC_mage_spell_scripts() new spell_mage_blast_wave(); new spell_mage_blazing_speed(); new spell_mage_blizzard(); - new spell_mage_burnout(); new spell_mage_cold_snap(); new spell_mage_cone_of_cold(); new spell_mage_conjure_refreshment(); |
