aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2020-05-19 00:02:46 +0200
committerShauren <shauren.trinity@gmail.com>2020-05-19 00:02:46 +0200
commit7a68001452f6eb83df3889a4ef90a7c317ec0eec (patch)
treeab0e6874a229abcc410e649eb03334cd3fde5554
parent3e833739071a689dc34e33f7a511d8cc50e00b94 (diff)
Core/Spells: Revert b711f0bcaef7e966140fce4929ff5196b6b2bbf6, not valid since cata
-rw-r--r--src/server/game/Spells/Spell.cpp34
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: