mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
- Added the property NotEnchantedBy to fix Bravado.
This commit is contained in:
@@ -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")) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user