Example #1
0
        private void ResetMove(CCreature rec)
        {
            //rec = rec.GetRide();
            if (rec != null)
            {
                // 解除BUFF状态时,如果没有晕眩,禁锢,则重置遥感,让遥感继续生效
                if (!rec.bStateBuff(eBuffState.stun) && !rec.bStateBuff(eBuffState.unmove) && !rec.bStateBuff(eBuffState.sleep) && !rec.bStateBuff(eBuffState.WindBlowsUp))
                {
                    rec.SetLogicMoveEnabled(true);
                    rec.UpdateUI_ResetJoyStick(true);
                }

                if (!rec.bStateBuff(eBuffState.stun) && !rec.bStateBuff(eBuffState.unmove) && !rec.bStateBuff(eBuffState.sleep) && !rec.bStateBuff(eBuffState.WindBlowsUp))
                {
                    rec.SetLogicMoveEnabled(true);
                    rec.UpdateUI_ResetJoyStick(true);
                }
            }
        }