From 5a63d12457348174397f40ed31da57313f06a461 Mon Sep 17 00:00:00 2001 From: Nay Date: Sat, 3 Sep 2011 23:29:30 +0200 Subject: [PATCH] Core: Fix indentation in SpellAuraEffects --- .../game/Spells/Auras/SpellAuraEffects.cpp | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/server/game/Spells/Auras/SpellAuraEffects.cpp b/src/server/game/Spells/Auras/SpellAuraEffects.cpp index 3c04009034..0fe54f2f2e 100755 --- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp +++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp @@ -4927,22 +4927,18 @@ void AuraEffect::HandleAuraDummy(AuraApplication const* aurApp, uint8 mode, bool case SPELLFAMILY_PRIEST: // Vampiric Touch if (m_spellInfo->SpellFamilyFlags[1] & 0x0400 && aurApp->GetRemoveMode() == AURA_REMOVE_BY_ENEMY_SPELL && GetEffIndex() == 0) - { if (AuraEffect const* aurEff = GetBase()->GetEffect(1)) { int32 damage = aurEff->GetAmount() * 8; // backfire damage target->CastCustomSpell(target, 64085, &damage, NULL, NULL, true, NULL, NULL, GetCasterGUID()); } - } break; case SPELLFAMILY_WARLOCK: // Haunt if (m_spellInfo->SpellFamilyFlags[1] & 0x40000) - { if (caster) target->CastCustomSpell(caster, 48210, &m_amount, 0, 0, true, NULL, this, GetCasterGUID()); - } break; case SPELLFAMILY_DRUID: // Lifebloom @@ -4967,13 +4963,13 @@ void AuraEffect::HandleAuraDummy(AuraApplication const* aurApp, uint8 mode, bool case SPELLFAMILY_HUNTER: switch (GetId()) { - case 34477: // Misdirection - if (aurApp->GetRemoveMode() != AURA_REMOVE_BY_EXPIRE) + case 34477: // Misdirection + if (aurApp->GetRemoveMode() != AURA_REMOVE_BY_EXPIRE) + target->SetReducedThreatPercent(0, 0); + break; + case 35079: // Misdirection proc target->SetReducedThreatPercent(0, 0); - break; - case 35079: // Misdirection proc - target->SetReducedThreatPercent(0, 0); - break; + break; } break; case SPELLFAMILY_DEATHKNIGHT: