예제 #1
0
            protected override void OnTarget(Mobile from, object targeted)
            {
                if (targeted is BaseCreature)
                {
                    BaseCreature m_Creature = (BaseCreature)targeted;
                    if (!m_Creature.InLOS(from))
                    {
                        from.SendMessage("You cannot see your target.");
                    }

                    if (m_Creature.IsUndeadNPC() || m_Creature.IsDemonNPC())
                    {
                        m_Trainer.SayTo(from, "I won't stable that!");
                    }
                    else
                    {
                        m_Trainer.EndStable(from, (BaseCreature)targeted);
                    }
                }
                else if (targeted == from)
                {
                    m_Trainer.SayTo(from, 502672);                       // HA HA HA! Sorry, I am not an inn.
                }
                else
                {
                    m_Trainer.SayTo(from, 1048053);                       // You can't stable that!
                }
            }