@mtgame/core 0.1.26 → 0.1.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3644,7 +3644,8 @@ var FootballGameStatistic = /** @class */ (function (_super) {
3644
3644
  if (!this.penaltyAttempts || !this.penaltyGoals) {
3645
3645
  return 0;
3646
3646
  }
3647
- return Math.round(1000 * this.penaltyGoals / this.penaltyAttempts) / 10;
3647
+ var penaltyShots = this.penaltyAttempts + this.penaltyGoals;
3648
+ return Math.round(1000 * this.penaltyGoals / penaltyShots) / 10;
3648
3649
  },
3649
3650
  enumerable: true,
3650
3651
  configurable: true
@@ -3661,7 +3662,8 @@ var FootballGameStatistic = /** @class */ (function (_super) {
3661
3662
  if (!this.smallPenaltyAttempts || !this.smallPenaltyGoals) {
3662
3663
  return 0;
3663
3664
  }
3664
- return Math.round(1000 * this.smallPenaltyGoals / this.smallPenaltyAttempts) / 10;
3665
+ var smallPenaltyShots = this.smallPenaltyAttempts + this.smallPenaltyGoals;
3666
+ return Math.round(1000 * this.smallPenaltyGoals / smallPenaltyShots) / 10;
3665
3667
  },
3666
3668
  enumerable: true,
3667
3669
  configurable: true