protected override void OnTarget(Mobile from, object o) { if (o is Mobile) { m_Owner.Target((Mobile)o); } }
protected override void OnTarget(Mobile from, object o) { if (o is IPoint3D p) { m_Owner.Target(p, m_Item); } }
protected override void OnTarget(Mobile from, object o) { IPoint3D p = o as IPoint3D; if (p != null) { m_Owner.Target(p); } }
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; } var p = o as IPoint3D; if (p != null) { m_Owner.Target(p); } }