mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 10:18:01 +00:00
Merge branch 'blockfix' into 'master'
Fix onlyOneBlockerPerOpponent See merge request core-developers/forge!5200
This commit is contained in:
@@ -425,7 +425,9 @@ public class CombatUtil {
|
||||
return false;
|
||||
}
|
||||
|
||||
final int blockersFromOnePlayer = CardLists.filter(combat.getAllBlockers(), CardPredicates.isController(blocker.getController())).size();
|
||||
CardCollection allOtherBlockers = combat.getAllBlockers();
|
||||
allOtherBlockers.remove(blocker);
|
||||
final int blockersFromOnePlayer = CardLists.filter(allOtherBlockers, CardPredicates.isController(blocker.getController())).size();
|
||||
if (blockersFromOnePlayer > 0 && game.getStaticEffects().getGlobalRuleChange(GlobalRuleChange.onlyOneBlockerPerOpponent)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user