diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/Spells/Spell.cpp | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp index 59e32b0789e..3f0fa402ac2 100644 --- a/src/server/game/Spells/Spell.cpp +++ b/src/server/game/Spells/Spell.cpp @@ -4997,18 +4997,6 @@ SpellCastResult Spell::CheckCast(bool strict, uint32* param1 /*= nullptr*/, uint if (Unit* target = m_targets.GetUnitTarget()) { - // do not allow to cast on hostile targets in sanctuary - if (!m_caster->IsFriendlyTo(target)) - { - if (m_caster->IsInSanctuary() || target->IsInSanctuary()) - { - // fix for duels - Player* player = m_caster->ToPlayer(); - if (!player || !player->duel || target != player->duel->opponent) - return SPELL_FAILED_NOTHING_TO_DISPEL; - } - } - SpellCastResult castResult = m_spellInfo->CheckTarget(m_caster, target, m_caster->GetEntry() == WORLD_TRIGGER); // skip stealth checks for GO casts if (castResult != SPELL_CAST_OK) return castResult; @@ -5573,28 +5561,6 @@ SpellCastResult Spell::CheckCast(bool strict, uint32* param1 /*= nullptr*/, uint { if (!m_targets.GetUnitTarget() || m_targets.GetUnitTarget() == m_caster) return SPELL_FAILED_BAD_TARGETS; - - uint32 dispelMask = m_spellInfo->GetDispelMask(DispelType(effect->MiscValue)); - bool hasStealableAura = false; - for (AuraApplication* visibleAura : m_targets.GetUnitTarget()->GetVisibleAuras()) - { - if (!visibleAura->IsPositive()) - continue; - - Aura const* aura = visibleAura->GetBase(); - if (!(aura->GetSpellInfo()->GetDispelMask() & dispelMask)) - continue; - - if (aura->IsPassive() || aura->GetSpellInfo()->HasAttribute(SPELL_ATTR4_NOT_STEALABLE)) - continue; - - hasStealableAura = true; - break; - } - - if (!hasStealableAura) - return SPELL_FAILED_NOTHING_TO_STEAL; - break; } case SPELL_EFFECT_LEAP_BACK: |