Core/Misc: Misc fixes

This commit is contained in:
hondacrx
2018-05-23 18:16:14 -04:00
parent 43d49f9e9b
commit 913beeae69
8 changed files with 16 additions and 27 deletions
+1 -1
View File
@@ -4643,7 +4643,7 @@ namespace Game.Spells
float x, y, z;
m_targets.GetDstPos().GetPosition(out x, out y, out z);
if (!m_spellInfo.HasAttribute(SpellAttr2.CanTargetDead) && !Global.DisableMgr.IsDisabledFor(DisableType.Spell, m_spellInfo.Id, null, DisableFlags.SpellLOS)
if (!m_spellInfo.HasAttribute(SpellAttr2.CanTargetNotInLos) && !Global.DisableMgr.IsDisabledFor(DisableType.Spell, m_spellInfo.Id, null, DisableFlags.SpellLOS)
&& !m_caster.IsWithinLOS(x, y, z))
return SpellCastResult.LineOfSight;
}