MapServer.DiYuXieFu.Run C# (CSharp) Method

Run() public method

public Run ( ) : bool
return bool
        public override bool Run()
        {
            bool ret = base.Run();
            //目标已死亡或者不再攻击范围内了..
            if (this.GetAi().GetTargetObject() == null)
            {
                this.ClearThis();
                if (mPlay.GetGameSession() != null)
                {
                    mPlay.SetZhaoHuanWuHuanObj(null);
                }
                //  mPlay.GetTimerSystem().DeleteStatus(GameStruct.RoleStatus.STATUS_SHENYUANELING);
                ret = false;
            }
            //宿主已退出游戏
            if (mPlay.GetGameSession() == null)
            {
                this.ClearThis();
                ret = false;
            }
            return ret;
        }