From bd72b78b5417b558edeaab4cb72a17660a9f8241 Mon Sep 17 00:00:00 2001 From: jendave Date: Sun, 7 Aug 2011 01:10:21 +0000 Subject: [PATCH] - Added Sheltering Prayers. --- .gitattributes | 1 + res/cardsfolder/sheltering_prayers.txt | 9 +++++++++ src/forge/GameActionUtil.java | 12 ++++++++++++ 3 files changed, 22 insertions(+) create mode 100644 res/cardsfolder/sheltering_prayers.txt diff --git a/.gitattributes b/.gitattributes index 21ed07eecca..abfd119d4ff 100644 --- a/.gitattributes +++ b/.gitattributes @@ -6233,6 +6233,7 @@ res/cardsfolder/shauku_endbringer.txt -text svneol=native#text/plain res/cardsfolder/shaukus_minion.txt -text svneol=native#text/plain res/cardsfolder/shell_skulkin.txt -text svneol=native#text/plain res/cardsfolder/sheltered_valley.txt -text svneol=native#text/plain +res/cardsfolder/sheltering_prayers.txt -text svneol=native#text/plain res/cardsfolder/sheoldred_whispering_one.txt -text svneol=native#text/plain res/cardsfolder/shepherd_of_rot.txt -text svneol=native#text/plain res/cardsfolder/shepherd_of_the_lost.txt -text svneol=native#text/plain diff --git a/res/cardsfolder/sheltering_prayers.txt b/res/cardsfolder/sheltering_prayers.txt new file mode 100644 index 00000000000..88699fa0387 --- /dev/null +++ b/res/cardsfolder/sheltering_prayers.txt @@ -0,0 +1,9 @@ +Name:Sheltering Prayers +ManaCost:W +Types:Enchantment +Text:no text +K:stPumpAll:Land.Basic+YouCtrl:0/0/Shroud:LandYouCtrlLE/3:Basic lands you control have shroud as long as you control three or fewer lands. +K:stPumpAll:Land.Basic+YouDontCtrl:0/0/Shroud:LandOppCtrlLE/3:Basic lands your opponent controls have shroud as long as your opponent controls three or fewer lands. +SVar:Rarity:Rare +SVar:Picture:http://www.wizards.com/global/images/magic/general/sheltering_prayers.jpg +End \ No newline at end of file diff --git a/src/forge/GameActionUtil.java b/src/forge/GameActionUtil.java index 273e4d79c8f..5cac33d2034 100644 --- a/src/forge/GameActionUtil.java +++ b/src/forge/GameActionUtil.java @@ -5353,6 +5353,18 @@ public class GameActionUtil { OppInPlay = OppInPlay.getType("Creature"); String maxnumber = SpecialConditions.split("/") [1]; if (!(OppInPlay.size() >= Integer.valueOf(maxnumber))) return false; + } + if(SpecialConditions.contains("LandYouCtrlLE")) { + CardList LandInPlay = AllZoneUtil.getPlayerCardsInPlay(SourceCard.getController()); + LandInPlay = LandInPlay.getType("Land"); + String maxnumber = SpecialConditions.split("/") [1]; + if (!(LandInPlay.size() <= Integer.valueOf(maxnumber))) return false; + } + if(SpecialConditions.contains("LandOppCtrlLE")) { + CardList OppLandInPlay = AllZoneUtil.getPlayerCardsInPlay(SourceCard.getController().getOpponent()); + OppLandInPlay = OppLandInPlay.getType("Land"); + String maxnumber = SpecialConditions.split("/") [1]; + if (!(OppLandInPlay.size() <= Integer.valueOf(maxnumber))) return false; } if(SpecialConditions.contains("OppLifeLE")) { int life = SourceCard.getController().getOpponent().getLife();