Exemple #1
0
            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);
                    }
                }
            }
Exemple #2
0
            private IEnumerable <Mobile> GetTargets()
            {
                WildfireSpell.DefragTable();

                return(m_Spell.AcquireIndirectTargets(m_Location, m_Range).OfType <Mobile>());
            }
Exemple #3
0
            private IEnumerable <Mobile> GetTargets()
            {
                WildfireSpell.DefragTable();

                return(m_Spell.AcquireIndirectTargets(m_Location, m_Range).OfType <Mobile>().Where(m => !m_Table.ContainsKey(m)));
            }