Exemplo n.º 1
0
    public static bool HitSuccess(CombatUnit caster, CombatUnit target, int baseHit)
    {
        int  hit       = UnityEngine.Random.Range(1, 100);
        Side side      = CombatUnit.actionAngle(caster, target);
        int  hitTarget = target.EvadeRate(side, baseHit);

        return(hit > hitTarget);
    }