Exemplo n.º 1
0
    public override bool HandleBeHitPre(Character attacker)
    {
        if (type != FanJiType.PreFanJi)
        {
            return(false);
        }
        if (owner.IsDizzy)
        {
            return(false);
        }
        if (owner.CurrSkill != null)
        {
            if (owner.CurrSkill is NfThrowBack == false)
            {
                return(false);
            }
            if (owner.CurrSkill is NfJiTui == false)
            {
                return(false);
            }
        }

        if (Fight.Rand(0, 101) <= Percent && NfSkill.CanFanJi(attacker))
        {
            NfSkill skill = DoTskill(owner, attacker);
            if (skill != null)
            {
                skill.isFanJi = true;
            }
        }
        return(false);
    }
Exemplo n.º 2
0
    public override bool HandleBeHitPre(Character attacker)
    {
        if (owner.IsDizzy || owner.IsBianYang || NfSkill.CanFanJi(attacker) == false)
        {
            return(false);
        }
        if (owner.CurrSkill != null)
        {
            if (owner.CurrSkill is NfThrowBack == false)
            {
                return(false);
            }
            if (owner.CurrSkill is NfJiTui == false)
            {
                return(false);
            }
        }

        if (num <= 0)
        {
            float per = Percent;
            if (Fight.Rand(1, 101) > per)
            {
                return(false);
            }
        }

        --num;
        DoTskill(owner, attacker);
        return(true);
    }