diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index 7a13a661004..100321fc179 100644 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -5262,18 +5262,6 @@ bool Unit::HandleDummyAuraProc(Unit* victim, uint32 damage, AuraEffect* triggere victim->RemoveAurasWithMechanic(1<GetSpellInfo(SPELL_WARLOCK_SOUL_SWAP_MOD_COST) || !sSpellMgr->GetSpellInfo(SPELL_WARLOCK_SOUL_SWAP_OVERRIDE)) + if (!sSpellMgr->GetSpellInfo(SPELL_WARLOCK_SOUL_SWAP_MOD_COST) || + !sSpellMgr->GetSpellInfo(SPELL_WARLOCK_SOUL_SWAP_OVERRIDE)) return false; return true; } @@ -1295,7 +1296,7 @@ public: Unit* currentTarget = GetExplTargetUnit(); Unit* swapTarget = NULL; if (Aura const* swapOverride = GetCaster()->GetAura(SPELL_WARLOCK_SOUL_SWAP_OVERRIDE)) - if (SoulSwapOverrideAuraScript* swapScript = dynamic_cast(swapOverride->GetScriptByName("spell_warlock_soul_swap_override"))) + if (SoulSwapOverrideAuraScript* swapScript = dynamic_cast(swapOverride->GetScriptByName("spell_warl_soul_swap_override"))) swapTarget = swapScript->GetOriginalSwapSource(); // Soul Swap Exhale can't be cast on the same target than Soul Swap @@ -1314,7 +1315,7 @@ public: Unit* swapSource = NULL; if (Aura const* swapOverride = GetCaster()->GetAura(SPELL_WARLOCK_SOUL_SWAP_OVERRIDE)) { - SoulSwapOverrideAuraScript* swapScript = dynamic_cast(swapOverride->GetScriptByName("spell_warlock_soul_swap_override")); + SoulSwapOverrideAuraScript* swapScript = dynamic_cast(swapOverride->GetScriptByName("spell_warl_soul_swap_override")); if (!swapScript) return; dotList = swapScript->GetDotList();