private IEnumerable <Mobile> GetTargets() { DefragTable(); foreach (IDamageable target in m_Spell.AcquireIndirectTargets(m_Location, m_Range)) { if (target is Mobile m && !m_Table.ContainsKey(m)) { yield return(m); } } }
private IEnumerable <Mobile> GetTargets() { WildfireSpell.DefragTable(); return(m_Spell.AcquireIndirectTargets(m_Location, m_Range).OfType <Mobile>()); }
private IEnumerable <Mobile> GetTargets() { WildfireSpell.DefragTable(); return(m_Spell.AcquireIndirectTargets(m_Location, m_Range).OfType <Mobile>().Where(m => !m_Table.ContainsKey(m))); }