mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
add Desert Nomads (from Arabian Nights)
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -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
|
||||
|
||||
10
res/cardsfolder/desert_nomads.txt
Normal file
10
res/cardsfolder/desert_nomads.txt
Normal 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
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user