mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 04:42:07 -08:00
Added as thought effect to let creatures block tapped.
This commit is contained in:
parent
024a1fac9a
commit
4a28881f71
10 changed files with 194 additions and 52 deletions
|
|
@ -54,6 +54,7 @@ import java.util.ArrayList;
|
|||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.UUID;
|
||||
import mage.filter.common.FilterCreatureForCombatBlock;
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
@ -154,7 +155,7 @@ public class TestPlayer extends ComputerPlayer<TestPlayer> {
|
|||
String command = action.getAction();
|
||||
command = command.substring(command.indexOf("block:") + 6);
|
||||
String[] groups = command.split(";");
|
||||
FilterCreatureForCombat filterBlocker = new FilterCreatureForCombat();
|
||||
FilterCreatureForCombatBlock filterBlocker = new FilterCreatureForCombatBlock();
|
||||
filterBlocker.add(new NamePredicate(groups[0]));
|
||||
Permanent blocker = findPermanent(filterBlocker, playerId, game);
|
||||
if (blocker != null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue