- Fixed the destination Library in AbilityFactory_Fetch by moving the shuffling effect and improved the prompt.

- Added Sterling Grove.
This commit is contained in:
jendave
2011-08-06 09:07:04 +00:00
parent 0b8057fe61
commit ddcc695e9d
3 changed files with 17 additions and 6 deletions

1
.gitattributes vendored
View File

@@ -3874,6 +3874,7 @@ res/cardsfolder/steelshaper_apprentice.txt -text svneol=native#text/plain
res/cardsfolder/steelshapers_gift.txt -text svneol=native#text/plain
res/cardsfolder/steely_resolve.txt -text svneol=native#text/plain
res/cardsfolder/steppe_lynx.txt -text svneol=native#text/plain
res/cardsfolder/sterling_grove.txt -text svneol=native#text/plain
res/cardsfolder/stern_judge.txt -text svneol=native#text/plain
res/cardsfolder/stern_proctor.txt -text svneol=native#text/plain
res/cardsfolder/steward_of_valeron.txt -text svneol=native#text/plain

View File

@@ -0,0 +1,10 @@
Name:Sterling Grove
ManaCost:W G
Types:Enchantment
Text:no text
K:stPumpOther:Enchantment.YouCtrl:0/0/Shroud:No Condition:Other enchantments you control have shroud. (They can't be the targets of spells or abilities.)
A:AB$Fetch|Cost$1 Sac<1/CARDNAME>|Destination$Library|FetchType$Enchantment|FetchNum$1|SpellDescription$Search your library for an enchantment card and reveal that card. Shuffle your library, then put the card on top of it.
SVar:RemAIDeck:True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/sterling_grove.jpg
End

View File

@@ -82,6 +82,7 @@ public class AbilityFactory_Fetch {
if(o != null) {
AllZone.Human_Library.remove(o);
AllZone.GameAction.shuffle(player);
Card c = (Card) o;
library.remove(c);
if (destination.equals("Hand"))
@@ -95,7 +96,6 @@ public class AbilityFactory_Fetch {
break;
}//if
}
AllZone.GameAction.shuffle(player);
}
private static void doFetchAI(AbilityFactory af, String player){
@@ -125,24 +125,24 @@ public class AbilityFactory_Fetch {
c = library.get(0);
AllZone.Computer_Library.remove(c);
AllZone.GameAction.shuffle(player);
library.remove(c);
if (destination.equals("Hand")) {
if (destination.equals("Hand")&& !type.equals("Card")) {
CardList l = new CardList();
l.add(c);
AllZone.Display.getChoiceOptional("Computer picked:", l.toArray());
AllZone.Display.getChoiceOptional(af.getHostCard().getName() + " - Computer picked:", l.toArray());
AllZone.Computer_Hand.add(c);
}//move to hand
else if (destination.equals("Battlefield"))
AllZone.getZone(Constant.Zone.Play, player).add(c); //move to battlefield
else if (destination.equals("Library")) {
else if (destination.equals("Library") && !type.equals("Card")) {
CardList l = new CardList();
l.add(c);
AllZone.Display.getChoiceOptional("Computer picked:", l.toArray());
AllZone.Display.getChoiceOptional(af.getHostCard().getName() + " - Computer picked:", l.toArray());
AllZone.Computer_Library.add(c, libraryPosition);
}//move to top of library
}//if
}
AllZone.GameAction.shuffle(player);
}
private static boolean fetchCanPlayAI(SpellAbility sa, AbilityFactory af){