Modified the AI and coverted Skullclamp from code object to implemented via keyword. Computer will no longer attach the Skullclamp to a creature with a net Toughness of 1.

This commit is contained in:
jendave
2011-08-06 03:37:57 +00:00
parent 858904aebf
commit 22a45135f6
3 changed files with 10 additions and 8 deletions

View File

@@ -222,6 +222,12 @@ Artifact Equipment
Equipped creature gets +1/+0.
eqPump 0:+1/+0
Skullclamp
1
Artifact Equipment
Equipped creature gets +1/-1. When equipped creature is put into a graveyard, draw two cards.
eqPump 1:+1/-1
Slagwurm Armor
1
Artifact Equipment
@@ -7885,11 +7891,6 @@ At the beginning of each upkeep, put a 1/1 red and green Dragon creature token w
4/4
Flying
Skullclamp
1
Artifact Equipment
Equipped creature gets +1/-1. When equipped creature is put into a graveyard, draw two cards.
Survival of the Fittest
1 G
Enchantment

View File

@@ -1269,7 +1269,8 @@ public class CardFactoryUtil {
public boolean addCard(Card c) {
return c.isCreature() && (!CardFactoryUtil.AI_doesCreatureAttack(c))
&& CardFactoryUtil.canTarget(sourceCard, c)
&& (!c.getKeyword().contains("Defender"));
&& (!c.getKeyword().contains("Defender"))
&& (c.getNetDefense() + Tough > 0);
}
});
// list.remove(card); // if mana-only cost, allow self-target

View File

@@ -471,7 +471,7 @@ class CardFactory_Equipment {
} //*************** END ************ END **************************
/*
//*************** START *********** START **************************
else if(cardName.equals("Skullclamp")) {
final Ability equip = new Ability(card, "1") {
@@ -577,7 +577,7 @@ class CardFactory_Equipment {
card.addUnEquipCommand(onUnEquip);
} //*************** END ************ END **************************
*/
/*
//*************** START *********** START **************************