aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVincent-Michael <Vincent_Michael@gmx.de>2012-08-26 05:05:05 +0200
committerVincent-Michael <Vincent_Michael@gmx.de>2012-08-26 05:05:05 +0200
commit50bed7eb4bba6709dfab2c2e28ceb5bf9e4c931b (patch)
treeca4c3bdf471d9cac5a28debf3a39c8c362f410ad /src
parent71ca10681408b6d5098a3718ea61b54f91d5f803 (diff)
Core/Spells: Cleanup in 71ca10681408b6d5098a3718ea61b54f91d5f803 /slap me
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Spells/spell_priest.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/server/scripts/Spells/spell_priest.cpp b/src/server/scripts/Spells/spell_priest.cpp
index da4229ff175..be5ec311c39 100644
--- a/src/server/scripts/Spells/spell_priest.cpp
+++ b/src/server/scripts/Spells/spell_priest.cpp
@@ -471,10 +471,7 @@ class spell_pri_shadowform : public SpellScriptLoader
void HandleEffectApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
- if (GetTarget()->HasAura(PRIEST_GLYPH_OF_SHADOW))
- GetTarget()->CastSpell(GetTarget(), PRIEST_SHADOWFORM_VISUAL_WITH_GLYPH, true);
- else
- GetTarget()->CastSpell(GetTarget(), PRIEST_SHADOWFORM_VISUAL_WITHOUT_GLYPH, true);
+ GetTarget()->CastSpell(GetTarget(), GetTarget()->HasAura(PRIEST_GLYPH_OF_SHADOW) ? PRIEST_SHADOWFORM_VISUAL_WITH_GLYPH : PRIEST_SHADOWFORM_VISUAL_WITHOUT_GLYPH, true);
}
void HandleEffectRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)