Beispiel #1
0
        protected override bool ProcessTarget()
        {
            Targeting.Target t = m_Mobile.Target;

            if (t == null)
            {
                return(false);
            }

            if (t is HailStormSpell.InternalTarget || t is NetherCycloneSpell.InternalTarget)
            {
                if (m_Mobile.Combatant != null && m_Mobile.InRange(m_Mobile.Combatant.Location, 8))
                {
                    t.Invoke(m_Mobile, m_Mobile.Combatant);
                }
                else
                {
                    t.Invoke(m_Mobile, m_Mobile);
                }

                return(true);
            }

            return(base.ProcessTarget());
        }
Beispiel #2
0
        protected override bool ProcessTarget()
        {
            Targeting.Target t = m_Mobile.Target;

            if (t is WildfireSpell.InternalTarget)
            {
                if (m_Mobile.Combatant != null && m_Mobile.InRange(m_Mobile.Combatant.Location, 8))
                {
                    t.Invoke(m_Mobile, m_Mobile.Combatant);
                }
                else
                {
                    t.Invoke(m_Mobile, m_Mobile);
                }

                return(true);
            }

            return(base.ProcessTarget());
        }