Core/Spell: Consider disables for LOS check

This commit is contained in:
Gacko
2013-02-05 19:39:51 +01:00
parent ede65fb60c
commit 745eb9732e

View File

@@ -6519,7 +6519,7 @@ bool Spell::CheckEffectTarget(Unit const* target, uint32 eff) const
break;
}
if (IsTriggered() || m_spellInfo->AttributesEx2 & SPELL_ATTR2_CAN_TARGET_NOT_IN_LOS)
if (IsTriggered() || m_spellInfo->AttributesEx2 & SPELL_ATTR2_CAN_TARGET_NOT_IN_LOS || DisableMgr::IsDisabledFor(DISABLE_TYPE_SPELL, m_spellInfo->Id, NULL, SPELL_DISABLE_LOS))
return true;
// todo: shit below shouldn't be here, but it's temporary