protected override void OnTarget(Mobile from, object o) { if (o is IDamageable) { m_Owner.Target((IDamageable)o); } }
protected override void OnTarget(Mobile from, object o) { if (m_ExpRegistry.ContainsKey(from)) { return; } if (o != null && o is Mobile) { m_Owner.Target((Mobile)o); } }
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 -= 20; var brazier = o as BoWBrazier; brazier.Calcdamage(from, 4); Effects.SendLocationEffect(new Point3D(brazier.X, brazier.Y, brazier.Z), brazier.Map, 0x36BD, 10, 0, 0); Effects.PlaySound(new Point3D(brazier.X, brazier.Y, brazier.Z), brazier.Map, 0x307); } }
protected override void OnTarget( Mobile from, object o ) { if ( o is Mobile ) m_Owner.Target( (Mobile)o ); }