protected override void OnTarget(Mobile from, object targeted) { MegaSpawner ms = null; if (targeted is MegaSpawner) { ms = (MegaSpawner)targeted; } if (ms != null) { ms.Dupe(from, count); } }