- Added the property NotEnchantedBy to fix Bravado.

This commit is contained in:
Sloth
2011-10-19 20:56:05 +00:00
parent 88d3df76f6
commit 4169dfd545
3 changed files with 4 additions and 2 deletions

View File

@@ -5043,6 +5043,8 @@ public class Card extends GameEntity implements Comparable<Card> {
if (!equipping.contains(source) && !source.equals(enchanting)) return false;
} else if (Property.startsWith("EnchantedBy")) {
if (!enchantedBy.contains(source)) return false;
} else if (Property.startsWith("NotEnchantedBy")) {
if (enchantedBy.contains(source)) return false;
} else if (Property.startsWith("Enchanted")) {
if (!source.equals(enchanting)) return false;
} else if (Property.startsWith("EquippedBy")) {

View File

@@ -860,7 +860,7 @@ public final class AbilityFactory_Combat {
list = list.getValidCards(abTgt.getValidTgts(), source.getController(), source);
list = list.filter(new CardListFilter() {
public boolean addCard(Card c) {
if (!CombatUtil.canBlock(source, c, AllZone.getCombat()))
if (!CombatUtil.canBlock(source, c))
return false;
if (CombatUtil.canDestroyAttacker(source, c, AllZone.getCombat(), false))
return false;