mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
- Fixed Allied Strategies
This commit is contained in:
@@ -3,7 +3,7 @@ ManaCost:4 U
|
||||
Types:Sorcery
|
||||
Text:no text
|
||||
A:SP$ Draw | Cost$ 4 U | NumCards$ X | ValidTgts$ Player | TgtPrompt$ Select target player | SpellDescription$ Domain - Target player draws a card for each basic land type among lands he or she controls.
|
||||
SVar:X:Count$Domain
|
||||
SVar:X:TargetedPlayer$DomainPlayer
|
||||
SVar:RemRandomDeck:True
|
||||
SVar:Rarity:Uncommon
|
||||
SVar:Picture:http://resources.wizards.com/magic/cards/ps/en-us/card26383.jpg
|
||||
|
||||
@@ -2707,6 +2707,19 @@ public class CardFactoryUtil {
|
||||
}
|
||||
}
|
||||
|
||||
if (sq[0].contains("DomainPlayer")) {
|
||||
CardList someCards = new CardList();
|
||||
someCards.addAll(players.get(0).getCardsIn(Zone.Battlefield));
|
||||
final String[] basic = { "Forest", "Plains", "Mountain", "Island", "Swamp" };
|
||||
|
||||
for (int i = 0; i < basic.length; i++) {
|
||||
if (!someCards.getType(basic[i]).isEmpty()) {
|
||||
n++;
|
||||
}
|
||||
}
|
||||
return CardFactoryUtil.doXMath(n, m, source);
|
||||
}
|
||||
|
||||
if (sq[0].contains("CardsInLibrary")) {
|
||||
if (players.size() > 0) {
|
||||
return CardFactoryUtil.doXMath(players.get(0).getCardsIn(Zone.Library).size(), m, source);
|
||||
@@ -2753,6 +2766,7 @@ public class CardFactoryUtil {
|
||||
return CardFactoryUtil.doXMath(n, m, source);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* parseSVar TODO - flesh out javadoc for this method.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user