예제 #1
0
    /// <summary>
    /// 移动
    /// </summary>
    protected override bool GetCanMove()
    {
        if (Gstatus == null)
        {
            return(true);
        }

        //眩晕状态
        if (Gstatus.HaveState(StatusType.Vertigo) == true)
        {
            return(false);
        }
        //击飞状态
        if (Gstatus.HaveState(StatusType.ClickFly))
        {
            return(false);
        }

        //静止状态
        if (Gstatus.HaveState(StatusType.Still))
        {
            return(false);
        }

        //束缚状态
        if (Gstatus.HaveState(StatusType.Trapped) == true)
        {
            return(false);
        }

        return(true);
    }
예제 #2
0
    /// <summary>
    /// 技能免疫
    /// </summary>
    protected override ImmuneSkill GetSkillImmune()
    {
        if (Gstatus == null)
        {
            return(ImmuneSkill.Normal);
        }
        //无敌状态
        if (Gstatus.HaveState(StatusType.Invincible) == true)
        {
            return(ImmuneSkill.Invincible);
        }
        //击飞状态
        if (Gstatus.HaveState(StatusType.ClickFly) == true)
        {
            return(ImmuneSkill.Invincible);
        }
        //虚化状态
        if (Gstatus.HaveState(StatusType.Virtual) == true)
        {
            return(ImmuneSkill.PhySkill);
        }
        //物理免疫
        if (Gstatus.HaveState(StatusType.ImmunePhysical) == true)
        {
            return(ImmuneSkill.PhySkill);
        }
        //魔法免疫
        if (Gstatus.HaveState(StatusType.ImmunityMagic) == true)
        {
            return(ImmuneSkill.MagicSkill);
        }

        return(ImmuneSkill.Normal);
    }
예제 #3
0
    /// <summary>
    /// 获取能否触发陷阱房间
    /// </summary>
    protected override bool GetTriggerTrapBuilding()
    {
        if (Gstatus == null)
        {
            return(true);
        }
        //眩晕状态
        if (Gstatus.HaveState(StatusType.Invisible) == true)
        {
            return(false);
        }
        //击飞状态
        if (Gstatus.HaveState(StatusType.ClickFly) == true)
        {
            return(false);
        }

        return(true);
    }
예제 #4
0
    /// <summary>
    /// 移动
    /// </summary>
    protected override bool GetCanAttack()
    {
        if (Gstatus == null)
        {
            return(true);
        }

        //眩晕状态
        if (Gstatus.HaveState(StatusType.Vertigo) == true)
        {
            return(false);
        }
        //击飞状态
        if (Gstatus.HaveState(StatusType.ClickFly))
        {
            return(false);
        }

        return(true);
    }
예제 #5
0
    /// <summary>
    /// 技能释放方式
    /// </summary>
    protected override ReleaseType GetReleaseType()
    {
        if (Gstatus == null)
        {
            return(ReleaseType.Normal);
        }
        //眩晕状态
        if (Gstatus.HaveState(StatusType.Vertigo) == true)
        {
            return(ReleaseType.NoALL);
        }
        //击飞状态
        if (Gstatus.HaveState(StatusType.ClickFly))
        {
            return(ReleaseType.NoALL);
        }
        //变形状态
        if (Gstatus.HaveState(StatusType.Transfiguration))
        {
            return(ReleaseType.NoALL);
        }
        //沉默状态
        if (Gstatus.HaveState(StatusType.Silence))
        {
            return(ReleaseType.NoMagic);
        }
        //束缚状态
        if (Gstatus.HaveState(StatusType.Trapped))
        {
            return(ReleaseType.NoAttack);
        }
        //击退状态
        if (Gstatus.HaveState(StatusType.KickedBack))
        {
            return(ReleaseType.NoALL);
        }

        return(ReleaseType.Normal);
    }
예제 #6
0
 /// <summary>
 /// 获取是否隐形
 /// </summary>
 protected override bool GetHide()
 {
     return(Gstatus.HaveState(StatusType.Invisible));
 }