- Simplified the code found in forge.card.cardFactory.CardFactory_Equipment.

This commit is contained in:
jendave
2011-08-07 01:00:20 +00:00
parent 777b104fa6
commit 31193c1b87

View File

@@ -199,7 +199,7 @@ class CardFactory_Equipment {
public boolean addCard(Card c) {
return CardFactoryUtil.AI_doesCreatureAttack(c)
&& CardFactoryUtil.canTarget(card, c)
&& (!c.getKeyword().contains("Defender"));
&& (!c.hasKeyword("Defender"));
}
});