From 52afb27efa49c6cd88561c97b49382b23cacea25 Mon Sep 17 00:00:00 2001 From: L30m4nc3r Date: Fri, 15 Jul 2011 18:45:42 +0700 Subject: [PATCH] Core/Misc: Fix typo in Corpse Explosion code Closes #2310 --- .../2011_07_15_00_world_spell_script_names.sql | 1 + src/server/scripts/Spells/spell_dk.cpp | 16 ++++++++-------- 2 files changed, 9 insertions(+), 8 deletions(-) create mode 100644 sql/updates/world/2011_07_15_00_world_spell_script_names.sql diff --git a/sql/updates/world/2011_07_15_00_world_spell_script_names.sql b/sql/updates/world/2011_07_15_00_world_spell_script_names.sql new file mode 100644 index 0000000000..0afcbebe86 --- /dev/null +++ b/sql/updates/world/2011_07_15_00_world_spell_script_names.sql @@ -0,0 +1 @@ +UPDATE `spell_script_names` SET `ScriptName` = 'spell_dk_ghoul_explode' WHERE `spell_id` = 47496; diff --git a/src/server/scripts/Spells/spell_dk.cpp b/src/server/scripts/Spells/spell_dk.cpp index f6492c9dee..ab3cf7e04a 100644 --- a/src/server/scripts/Spells/spell_dk.cpp +++ b/src/server/scripts/Spells/spell_dk.cpp @@ -239,15 +239,15 @@ class spell_dk_corpse_explosion : public SpellScriptLoader } }; -// 47496 - Explode, Gnoul spell for Corpse Explosion -class spell_dk_gnoul_explode : public SpellScriptLoader +// 47496 - Explode, Ghoul spell for Corpse Explosion +class spell_dk_ghoul_explode : public SpellScriptLoader { public: - spell_dk_gnoul_explode() : SpellScriptLoader("spell_dk_gnoul_explode") { } + spell_dk_ghoul_explode() : SpellScriptLoader("spell_dk_ghoul_explode") { } - class spell_dk_gnoul_explode_SpellScript : public SpellScript + class spell_dk_ghoul_explode_SpellScript : public SpellScript { - PrepareSpellScript(spell_dk_gnoul_explode_SpellScript); + PrepareSpellScript(spell_dk_ghoul_explode_SpellScript); void Suicide(SpellEffIndex /*effIndex*/) { @@ -262,13 +262,13 @@ class spell_dk_gnoul_explode : public SpellScriptLoader void Register() { - OnEffect += SpellEffectFn(spell_dk_gnoul_explode_SpellScript::Suicide, EFFECT_1, SPELL_EFFECT_SCHOOL_DAMAGE); + OnEffect += SpellEffectFn(spell_dk_ghoul_explode_SpellScript::Suicide, EFFECT_1, SPELL_EFFECT_SCHOOL_DAMAGE); } }; SpellScript* GetSpellScript() const { - return new spell_dk_gnoul_explode_SpellScript(); + return new spell_dk_ghoul_explode_SpellScript(); } }; @@ -559,7 +559,7 @@ void AddSC_deathknight_spell_scripts() new spell_dk_anti_magic_shell_self(); new spell_dk_anti_magic_zone(); new spell_dk_corpse_explosion(); - new spell_dk_gnoul_explode(); + new spell_dk_ghoul_explode(); new spell_dk_death_gate(); new spell_dk_death_pact(); new spell_dk_scourge_strike();