Added Ember Beast, Jackal Familiar and Mogg Flunkies.

Added CARDNAME can't attack or block alone keyword.
This commit is contained in:
moomarc
2012-07-11 14:45:37 +00:00
parent 6567ce9aad
commit c83337950d
7 changed files with 88 additions and 0 deletions

View File

@@ -284,6 +284,17 @@ public class PhaseUtil {
*/
public static void handleDeclareAttackers() {
PhaseUtil.verifyCombat();
// Handles removing cards like Mogg Flunkies from combat if group attack didn't occur
final CardList filterList = AllZone.getCombat().getAttackerList();
for (Card c : filterList) {
if (c.hasKeyword("CARDNAME can't attack or block alone.") && c.isAttacking()) {
if (AllZone.getCombat().getAttackers().size() < 2) {
AllZone.getCombat().removeFromCombat(c);
}
}
}
final CardList list = AllZone.getCombat().getAttackerList();
// TODO move propaganda to happen as the Attacker is Declared
@@ -342,6 +353,16 @@ public class PhaseUtil {
public static void handleDeclareBlockers() {
PhaseUtil.verifyCombat();
// Handles removing cards like Mogg Flunkies from combat if group block didn't occur
final CardList filterList = AllZone.getCombat().getAllBlockers();
for (Card c : filterList) {
if (c.hasKeyword("CARDNAME can't attack or block alone.") && c.isBlocking()) {
if (AllZone.getCombat().getAllBlockers().size() < 2) {
AllZone.getCombat().undoBlockingAssignment(c);
}
}
}
AllZone.getStack().freezeStack();
AllZone.getCombat().setUnblocked();