Core/Scripts: Simplify spellscript from 1f785905d5

This commit is contained in:
Pitcrawler
2013-06-08 19:30:40 +02:00
parent 1f785905d5
commit 368e3c17a1

View File

@@ -3564,8 +3564,7 @@ class spell_gen_orc_disguise : public SpellScriptLoader
enum WhisperGulchYoggSaronWhisper
{
SPELL_YOGG_SARON_WHISPER_DUMMY = 29072,
CREATURE_UNKNOWN_VOICE = 29881
SPELL_YOGG_SARON_WHISPER_DUMMY = 29072
};
class spell_gen_whisper_gulch_yogg_saron_whisper : public SpellScriptLoader
@@ -3587,8 +3586,7 @@ class spell_gen_whisper_gulch_yogg_saron_whisper : public SpellScriptLoader
void HandleEffectPeriodic(AuraEffect const* /*aurEff*/)
{
PreventDefaultAction();
if (Unit* caster = GetCaster())
caster->CastSpell(caster->FindNearestCreature(CREATURE_UNKNOWN_VOICE,100), SPELL_YOGG_SARON_WHISPER_DUMMY, true);
GetTarget()->CastSpell((Unit*)NULL, SPELL_YOGG_SARON_WHISPER_DUMMY, true);
}
void Register()