Beispiel #1
0
        public void Target(Mobile m)
        {
            if (!Caster.CanSee(m))
            {
                Caster.SendLocalizedMessage(500237); // Target can not be seen.
            }
            else if (m_Table.ContainsKey(m) || MagicReflectSpell.InTable(Caster))
            {
                Caster.SendLocalizedMessage(1005559); // This spell is already in effect.
            }
            else if (CheckSequence())
            {
                DoEffect(m);
            }

            FinishSequence();
        }
Beispiel #2
0
        public override void OnCast()
        {
            if (Caster is PlayerMobile)
            {
                Caster.Target = new InternalTarget(this);
            }
            else if (m_Table.ContainsKey(Caster) || MagicReflectSpell.InTable(Caster))
            {
                Caster.SendLocalizedMessage(1005559); // This spell is already in effect.
            }
            else
            {
                if (CheckSequence())
                {
                    DoEffect(Caster);
                }

                FinishSequence();
            }
        }
Beispiel #3
0
 public InternalTarget(MagicReflectSpell owner)
     : base(12, false, TargetFlags.Beneficial)
 {
     m_Owner = owner;
 }