Beispiel #1
0
        public override bool DoActionGuard()
        {
            if (m_LastTarget != null && m_LastTarget.Hidden)
            {
                Map map = m_Mobile.Map;

                if (map == null || !m_Mobile.InRange(m_LastTargetLoc, Core.ML ? 10 : 12))
                {
                    m_LastTarget = null;
                }
                else if (m_Mobile.Spell == null && DateTime.Now > m_NextCastTime)
                {
                    m_Mobile.DebugSay("I am going to reveal my last target");

                    m_RevealTarget = new LandTarget(m_LastTargetLoc, map);
                    Spell spell = new RevealSpell(m_Mobile, null);

                    if (spell.Cast())
                        m_LastTarget = null; // only do it once

                    m_NextCastTime = DateTime.Now + GetDelay(spell);
                }
            }

            if (AcquireFocusMob(m_Mobile.RangePerception, m_Mobile.FightMode, false, false, true))
            {
                m_Mobile.DebugSay("I am going to attack {0}", m_Mobile.FocusMob.Name);

                m_Mobile.Combatant = m_Mobile.FocusMob;
                Action = ActionType.Combat;
            }
            else
            {
                if (!m_Mobile.Controlled)
                {
                    ProcessTarget();

                    Spell spell = CheckCastHealingSpell();

                    if (spell != null)
                        spell.Cast();
                }

                base.DoActionGuard();
            }

            return true;
        }
Beispiel #2
0
 public InternalTarget( RevealSpell owner )
     : base(12, true, TargetFlags.None)
 {
     m_Owner = owner;
 }
Beispiel #3
0
 public InternalTarget(RevealSpell owner)
     : base(Core.ML ? 10 : 12, true, TargetFlags.None)
 {
     this.m_Owner = owner;
 }
Beispiel #4
0
 public InternalTarget(RevealSpell owner) : base(12, true, TargetFlags.None)
 {
     m_Owner = owner;
 }
Beispiel #5
0
 public InternalTarget(RevealSpell owner)
     : base(Core.ML ? 10 : 12, true, TargetFlags.None)
 {
     this.m_Owner = owner;
 }
Beispiel #6
0
 public InternalTarget(RevealSpell owner)
     : base(owner.Caster.EraML ? 10 : 12, true, TargetFlags.None)
 {
     m_Owner = owner;
 }
Beispiel #7
0
 public InternalSphereTarget(RevealSpell owner)
     : base(Core.ML ? 10 : 12, true, TargetFlags.None)
 {
     m_Owner = owner;
     m_Owner.Caster.SendAsciiMessage("Selecione o alvo...");
 }
 public InternalSphereTarget(RevealSpell owner)
     : base(Core.ML ? 10 : 12, true, TargetFlags.None)
 {
     m_Owner = owner;
     m_Owner.Caster.SendAsciiMessage("Selecione o alvo...");
 }
Beispiel #9
0
			public InternalTarget(RevealSpell owner)
				: base(owner.Caster.EraML ? 10 : 12, true, TargetFlags.None)
			{
				m_Owner = owner;
			}