Update comments for df744c7
This commit is contained in:
1 parent
df744c75e7
commit
1c56c41d60
1 file changed
+2
-2
@@ -6446,11 +6446,11 @@ bool Spell::CheckEffectTarget(Unit const* target, uint32 eff, Position const* lo
|
||||
break;
|
||||
}
|
||||
|
||||
// check for ignore self on the effect itself
|
||||
// check for ignore LOS on the effect itself
|
||||
if (m_spellInfo->AttributesEx2 & SPELL_ATTR2_CAN_TARGET_NOT_IN_LOS || DisableMgr::IsDisabledFor(DISABLE_TYPE_SPELL, m_spellInfo->Id, NULL, SPELL_DISABLE_LOS))
|
||||
return true;
|
||||
|
||||
// if is a triggered spell, i need to check for los disable on the aura triggering it and inherit that behaviour
|
||||
// if spell is triggered, need to check for LOS disable on the aura triggering it and inherit that behaviour
|
||||
if (IsTriggered() && m_triggeredByAuraSpell && (m_triggeredByAuraSpell->AttributesEx2 & SPELL_ATTR2_CAN_TARGET_NOT_IN_LOS || DisableMgr::IsDisabledFor(DISABLE_TYPE_SPELL, m_triggeredByAuraSpell->Id, NULL, SPELL_DISABLE_LOS)))
|
||||
return true;
|
||||
|
||||
|
||||
Reference in new issue
Block a user