Target() public method

public Target ( Mobile m ) : void
m Mobile
return void
示例#1
0
 protected override void OnTarget(Mobile from, object o)
 {
     if (o is Mobile)
     {
         m_Owner.Target((Mobile)o);
     }
     else if (o is DamageableWall)
     {
         m_Owner.Target((DamageableWall)o);
     }
 }
示例#2
0
 protected override void OnTarget(Mobile from, object o)
 {
     if (o is Mobile)
     {
         m_Owner.Target((Mobile)o);
     }
 }
示例#3
0
 protected override void OnTarget(Mobile from, object o)
 {
     if (o is IDamageable damageable)
     {
         m_Owner.Target(damageable);
     }
 }
示例#4
0
 protected override void OnTarget(Mobile from, object o)
 {
     if (o is Mobile)
     {
         m_Owner.Target((Mobile)o);
     }
     else if (o is MagicVines)
     {
         ((MagicVines)o).OnFlameStrike(from);
     }
 }
示例#5
0
            protected override void OnTarget(Mobile from, object o)
            {
                IEntity entity = o as IEntity; if (XmlScript.HasTrigger(entity, TriggerName.onTargeted) && UberScriptTriggers.Trigger(entity, from, TriggerName.onTargeted, null, null, m_Owner))

                {
                    return;
                }
                if (o is Mobile)
                {
                    m_Owner.Target((Mobile)o);
                }

                if (o is BoWBrazier)
                {
                    from.Mana -= 40;
                    var brazier = o as BoWBrazier;
                    brazier.Calcdamage(from, 5);
                    Effects.SendLocationEffect(new Point3D(brazier.X, brazier.Y, brazier.Z), brazier.Map, 0x3709, 15, 0, 0);
                    Effects.PlaySound(new Point3D(brazier.X, brazier.Y, brazier.Z), brazier.Map, 0x208);
                }
            }