예제 #1
0
파일: Mobile.cs 프로젝트: uotools/PlayUO
        public void OnDoubleClick()
        {
            Mobile player = World.Player;

            if (player != null)
            {
                if ((player.Flags[MobileFlag.Warmode] && !player.Ghost) && (!this.Ghost && !this.Player))
                {
                    if ((this.m_Notoriety == Client.Notoriety.Innocent) && ((World.CharData.NotoQuery == NotoQueryType.On) || ((World.CharData.NotoQuery == NotoQueryType.Smart) && (this.CheckGuarded() || player.CheckGuarded()))))
                    {
                        Gumps.Desktop.Children.Add(new GCriminalAttackQuery(this));
                    }
                    else
                    {
                        this.Attack();
                    }
                }
                else
                {
                    this.Use();
                    PUseRequest.Last = this;
                }
            }
        }