Added as thought effect to let creatures block tapped.

This commit is contained in:
LevelX2 2013-08-03 20:14:11 +02:00
parent 024a1fac9a
commit 4a28881f71
10 changed files with 194 additions and 52 deletions

View file

@ -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) {