mirror of
https://github.com/magefree/mage.git
synced 2025-12-30 07:22:03 -08:00
Can block any number of creatures - fixed that it can be broken with some of "can block an additional creature" effects
This commit is contained in:
parent
db9bdc05c2
commit
49c28458ec
6 changed files with 24 additions and 24 deletions
|
|
@ -2049,7 +2049,8 @@ public class TestPlayer implements Player {
|
|||
int numBlocked = blocked.size();
|
||||
|
||||
// Can't block any more creatures
|
||||
if (++numBlocked > blocker.getMaxBlocks()) {
|
||||
// maxBlocks = 0 equals to "can block any number of creatures"
|
||||
if (blocker.getMaxBlocks() > 0 && ++numBlocked > blocker.getMaxBlocks()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue