Ejemplo n.º 1
0
    public void Attack(Character target)
    {
        if (target.IsDead)
        {
            AttackTarget = null;
            return;
        }


        var roll   = Stats.Roll(StatType.ACCURACY);
        var damage = Stats.Damage + RegularAttack.Attack();

        CombatLog.Attack(this.CharacterName, target.CharacterName, roll);
        target.ReceiveAttack(roll, damage);
    }