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.
- package/index.js +2 -1
- 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
|
-
|
|
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
|
|