enefel 1.0.145 → 1.0.146

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.
Files changed (2) hide show
  1. package/index.js +2 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -717,9 +717,10 @@ function canBlock(attacker, defender, attackerTeam, game, withModif = true) {
717
717
 
718
718
  // No blitz available
719
719
  if (attackerTeam.date_next_blitz !== null) {
720
- return attacker.current_MA === withModif
720
+ const value = withModif
721
721
  ? getMaxCarac(attacker, PLAYER_CARAC.MA, game)
722
722
  : attacker.MA;
723
+ return attacker.current_MA === value;
723
724
  } else {
724
725
  // Blitz available
725
726
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "enefel",
3
- "version": "1.0.145",
3
+ "version": "1.0.146",
4
4
  "main": "index.js",
5
5
  "author": "Manest",
6
6
  "license": "MIT",