add Desert Nomads (from Arabian Nights)

This commit is contained in:
jendave
2011-08-06 15:30:30 +00:00
parent 5e2324a5e0
commit 7fff9c0354
3 changed files with 20 additions and 0 deletions

1
.gitattributes vendored
View File

@@ -1294,6 +1294,7 @@ res/cardsfolder/descendant_of_soramaro.txt -text svneol=native#text/plain
res/cardsfolder/desecrated_earth.txt -text svneol=native#text/plain
res/cardsfolder/desert.txt -text svneol=native#text/plain
res/cardsfolder/desert_drake.txt -text svneol=native#text/plain
res/cardsfolder/desert_nomads.txt -text svneol=native#text/plain
res/cardsfolder/desert_sandstorm.txt -text svneol=native#text/plain
res/cardsfolder/desert_twister.txt -text svneol=native#text/plain
res/cardsfolder/deserted_temple.txt -text svneol=native#text/plain

View File

@@ -0,0 +1,10 @@
Name:Desert Nomads
ManaCost:2 R
Types:Creature Human Nomad
Text:Prevent all damage that would be dealt to CARDNAME by Deserts.
PT:2/2
K:Desertwalk
K:PreventAllDamageBy Desert
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/desert_nomads.jpg
End

View File

@@ -131,6 +131,15 @@ public class CombatUtil {
if(!temp.isEmpty()) return false;
}
if(attacker.getKeyword().contains("Desertwalk")) {
temp = blkCL.filter(new CardListFilter() {
public boolean addCard(Card c) {
return c.isLand() && c.getType().contains("Desert");
}
});
if(!temp.isEmpty()) return false;
}
if(attacker.getKeyword().contains("Nonbasic landwalk")) {
temp = blkCL.filter(new CardListFilter() {
public boolean addCard(Card c) {