Target() public method

public Target ( Mobile m ) : void
m Mobile
return void
Esempio n. 1
0
 protected override void OnTarget(Mobile from, object o)
 {
     if (o is Mobile)
     {
         m_Owner.Target((Mobile)o);
     }
 }
Esempio n. 2
0
 protected override void OnTarget(Mobile from, object o)
 {
     if (o is IDamageable damageable)
     {
         m_Owner.Target(damageable);
     }
 }
Esempio n. 3
0
            protected override void OnTarget(Mobile from, object o)
            {
                var 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);
                }
            }