Skip to content

Commit

Permalink
Allow to precast postive spells on isolated targets (Banish / Cyclone)
Browse files Browse the repository at this point in the history
Signed-off-by: robinsch <robin.schriever.hude@web.de>
  • Loading branch information
robinsch authored and Warlockbugs committed Sep 15, 2016
1 parent 385eb87 commit 6f5e26b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/Spell.cpp
Expand Up @@ -5169,7 +5169,7 @@ SpellCastResult Spell::CheckCast(bool strict)
}

if (IsPositiveSpell(m_spellInfo->Id))
if (target->IsImmuneToSpell(m_spellInfo, target == m_caster))
if (target->IsImmuneToSpell(m_spellInfo, target == m_caster) && !target->hasUnitState(UNIT_STAT_ISOLATED))
return SPELL_FAILED_TARGET_AURASTATE;

// Must be behind the target.
Expand Down

0 comments on commit 6f5e26b

Please sign in to comment.