add Barbarian Outcast (from Torment)

This commit is contained in:
jendave
2011-08-06 16:09:16 +00:00
parent 0a21a0c277
commit 484d51a1ae
3 changed files with 40 additions and 0 deletions

1
.gitattributes vendored
View File

@@ -428,6 +428,7 @@ res/cardsfolder/bant_sureblade.txt -text svneol=native#text/plain
res/cardsfolder/barbarian_general.txt -text svneol=native#text/plain
res/cardsfolder/barbarian_horde.txt -text svneol=native#text/plain
res/cardsfolder/barbarian_lunatic.txt -text svneol=native#text/plain
res/cardsfolder/barbarian_outcast.txt -text svneol=native#text/plain
res/cardsfolder/barbarian_riftcutter.txt -text svneol=native#text/plain
res/cardsfolder/barbarian_ring.txt svneol=native#text/plain
res/cardsfolder/barbary_apes.txt -text svneol=native#text/plain

View File

@@ -0,0 +1,9 @@
Name:Barbarian Outcast
ManaCost:1 R
Types:Creature Human Barbarian Beast
Text:no text
PT:2/2
K:When you control no Swamps, sacrifice CARDNAME.
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/barbarian_outcast.jpg
End

View File

@@ -10915,6 +10915,7 @@ public class GameActionUtil {
Sacrifice_NoIslands.execute();
Sacrifice_NoForests.execute();
Sacrifice_NoSwamps.execute();
Sacrifice_NoArtifacts.execute();
Sacrifice_NoEnchantments.execute();
Sacrifice_NoLands.execute();
@@ -11559,6 +11560,13 @@ public class GameActionUtil {
Cards_inZone.addAll(AllZone.Human_Hand.getCards());
Cards_inZone.addAll(AllZone.Computer_Hand.getCards());
}
//hack for Molten Disaster
/*
// TODO for future use
if(Keyword_Details.length >= 2 && Keyword_Details[2].contains("Split second")) {
Cards_inZone.add(AllZone.Stack.getSpellCardsOnStack());
}
*/
}
if(Range.equals("Enchanted")) {
if (SourceCard.getEnchanting().size() > 0)
@@ -12425,6 +12433,28 @@ public class GameActionUtil {
}//execute()
};//Sacrifice_NoForests
public static Command Sacrifice_NoSwamps = new Command() {
private static final long serialVersionUID = 1961985826678794078L;
public void execute() {
CardList creature = AllZoneUtil.getCardsInPlay();
creature = creature.filter(new CardListFilter() {
public boolean addCard(Card c) {
return c.getKeyword().contains(
"When you control no Swamps, sacrifice CARDNAME.");
}
});
for(Card c:creature) {
if(AllZoneUtil.getPlayerTypeInPlay(c.getController(), "Swamp").size() == 0) {
AllZone.GameAction.sacrifice(c);
}
}
}//execute()
};//Sacrifice_NoForests
public static Command Sacrifice_NoArtifacts = new Command() {
private static final long serialVersionUID = -2546650213674544590L;
int artifacts = 0;