示例#1
0
        /// <summary>
        /// 是否能被攻击
        /// </summary>
        /// <param name="enemy"></param>
        /// <returns></returns>
        public static bool CanAttack(FakeRoleItem enemy)
        {
            if (GameManager.TestGameShowFakeRoleForUser)
            {
                return(false);
            }

            if (null == enemy)
            {
                return(false);
            }

            if (enemy.GetFakeRoleData().FakeRoleType != (int)FakeRoleTypes.LiXianGuaJi) //不是离线挂机的假人不能攻击
            {
                return(false);
            }

            return(true);
        }
示例#2
0
 public static bool CanAttack(FakeRoleItem enemy)
 {
     return(!GameManager.TestGameShowFakeRoleForUser && null != enemy && enemy.GetFakeRoleData().FakeRoleType == 2);
 }