diff options
author | ariel- <ariel-@users.noreply.github.com> | 2016-12-29 23:30:54 -0300 |
---|---|---|
committer | ariel- <ariel-@users.noreply.github.com> | 2016-12-29 23:30:54 -0300 |
commit | f5e08885b77d2271d539747b494b777bc5fd1c45 (patch) | |
tree | 2b97ec59f258f4985c7698182dcc63bfa5cdd93a | |
parent | 63a4a94f5a66bde0d843dcdc74c4c1e1d3bba306 (diff) |
Core/Script: Kill one startup error
-rw-r--r-- | sql/updates/world/3.3.5/2016_12_30_00_world_335.sql | 1 | ||||
-rw-r--r-- | src/server/scripts/Spells/spell_rogue.cpp | 34 |
2 files changed, 1 insertions, 34 deletions
diff --git a/sql/updates/world/3.3.5/2016_12_30_00_world_335.sql b/sql/updates/world/3.3.5/2016_12_30_00_world_335.sql new file mode 100644 index 00000000000..8fb35ad279f --- /dev/null +++ b/sql/updates/world/3.3.5/2016_12_30_00_world_335.sql @@ -0,0 +1 @@ +DELETE FROM `spell_script_names` WHERE `ScriptName`='spell_rog_turn_the_tables_proc'; diff --git a/src/server/scripts/Spells/spell_rogue.cpp b/src/server/scripts/Spells/spell_rogue.cpp index ad5dafff0c4..78c84048aec 100644 --- a/src/server/scripts/Spells/spell_rogue.cpp +++ b/src/server/scripts/Spells/spell_rogue.cpp @@ -1117,39 +1117,6 @@ class spell_rog_turn_the_tables : public SpellScriptLoader } }; -// 52910,52914,52915 - Turn the Tables proc -class spell_rog_turn_the_tables_proc : public SpellScriptLoader -{ - public: - spell_rog_turn_the_tables_proc() : SpellScriptLoader("spell_rog_turn_the_tables_proc") { } - - class spell_rog_turn_the_tables_proc_SpellScript : public SpellScript - { - PrepareSpellScript(spell_rog_turn_the_tables_proc_SpellScript); - - void FilterTargets(std::list<WorldObject*>& targets) - { - targets.clear(); - - Unit* target = GetOriginalCaster(); - if (!target) - return; - - targets.push_back(target); - } - - void Register() override - { - OnObjectAreaTargetSelect += SpellObjectAreaTargetSelectFn(spell_rog_turn_the_tables_proc_SpellScript::FilterTargets, EFFECT_0, TARGET_UNIT_CASTER_AREA_RAID); - } - }; - - SpellScript* GetSpellScript() const override - { - return new spell_rog_turn_the_tables_proc_SpellScript(); - } -}; - void AddSC_rogue_spell_scripts() { new spell_rog_blade_flurry(); @@ -1172,5 +1139,4 @@ void AddSC_rogue_spell_scripts() new spell_rog_honor_among_thieves(); new spell_rog_honor_among_thieves_proc(); new spell_rog_turn_the_tables(); - new spell_rog_turn_the_tables_proc(); } |