Ejemplo n.º 1
0
        static void sub_3E192(int index, Player target, Player attacker)
        {
            gbl.damage = ovr024.roll_dice_save(attacker.attackDiceSize(index), attacker.attackDiceCount(index));
            gbl.damage += attacker.attackDamageBonus(index);

            if (gbl.damage < 0)
            {
                gbl.damage = 0;
            }

            if (CanBackStabTarget(target, attacker) == true)
            {
                gbl.damage *= ((attacker.SkillLevel(SkillType.Thief) - 1) / 4) + 2;
            }

            gbl.damage_flags = 0;
            ovr024.CheckAffectsEffect(attacker, CheckType.SpecialAttacks);
            ovr024.CheckAffectsEffect(target, CheckType.Type_5);
        }