mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-27 20:32:21 +01:00
Core/Scripts: Simplify spellscript from 1f785905d5
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user