@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.
@@ -3857,7 +3857,8 @@
3857
3857
  if (!this.penaltyAttempts || !this.penaltyGoals) {
3858
3858
  return 0;
3859
3859
  }
3860
- return Math.round(1000 * this.penaltyGoals / this.penaltyAttempts) / 10;
3860
+ var penaltyShots = this.penaltyAttempts + this.penaltyGoals;
3861
+ return Math.round(1000 * this.penaltyGoals / penaltyShots) / 10;
3861
3862
  },
3862
3863
  enumerable: true,
3863
3864
  configurable: true
@@ -3874,7 +3875,8 @@
3874
3875
  if (!this.smallPenaltyAttempts || !this.smallPenaltyGoals) {
3875
3876
  return 0;
3876
3877
  }
3877
- return Math.round(1000 * this.smallPenaltyGoals / this.smallPenaltyAttempts) / 10;
3878
+ var smallPenaltyShots = this.smallPenaltyAttempts + this.smallPenaltyGoals;
3879
+ return Math.round(1000 * this.smallPenaltyGoals / smallPenaltyShots) / 10;
3878
3880
  },
3879
3881
  enumerable: true,
3880
3882
  configurable: true