Ejemplo n.º 1
0
            protected override void OnTarget(Mobile from, object target)
            {
                Spec spec = @from switch
                {
                    PlayerMobile mobile => mobile.Spec,
                    BaseCreature bc => bc.Spec,
                     _ => null
                };

                spec?.ComputeSpec();
                from.SendMessage("{0}: {1}, level {2}", from.Name, spec?.SpecName, spec?.SpecLevel);
            }
        }