- Added Teferi's Moat.

This commit is contained in:
Sloth
2011-10-04 19:14:08 +00:00
parent c0ff8dabc3
commit 2497dad385
3 changed files with 21 additions and 0 deletions

1
.gitattributes vendored
View File

@@ -7973,6 +7973,7 @@ res/cardsfolder/t/teferis_care.txt -text
res/cardsfolder/t/teferis_drake.txt -text
res/cardsfolder/t/teferis_honor_guard.txt -text
res/cardsfolder/t/teferis_isle.txt -text
res/cardsfolder/t/teferis_moat.txt -text
res/cardsfolder/t/teferis_puzzle_box.txt svneol=native#text/plain
res/cardsfolder/t/teferis_response.txt svneol=native#text/plain
res/cardsfolder/t/tek.txt svneol=native#text/plain

View File

@@ -0,0 +1,13 @@
Name:Teferi's Moat
ManaCost:3 W U
Types:Enchantment
Text:no text
T:Mode$ ChangesZone | ValidCard$ Card.Self | Origin$ Any | Destination$ Battlefield | Execute$ ChooseColor | Static$ True| TriggerDescription$ As CARDNAME enters the battlefield, choose a color.
SVar:ChooseColor:AB$ ChooseColor | Cost$ 0 | Defined$ You | AILogic$ MostProminentHumanCreatures
S:Mode$ Continuous | Affected$ Creature.withoutFlying+ChosenColor | AddHiddenKeyword$ HIDDEN CARDNAME can't attack. | Description$ Creatures of the chosen color without flying can't attack you.
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/teferis_moat.jpg
SetInfo:INV|Rare|http://magiccards.info/scans/en/in/279.jpg
SetInfo:TSB|Special|http://magiccards.info/scans/en/tsts/103.jpg
Oracle:As Teferi's Moat enters the battlefield, choose a color.\nCreatures of the chosen color without flying can't attack you.
End

View File

@@ -4,6 +4,7 @@ package forge.card.abilityFactory;
import forge.AllZone;
import forge.AllZoneUtil;
import forge.Card;
import forge.CardList;
import forge.CardUtil;
import forge.ComputerUtil;
import forge.Constant;
@@ -588,6 +589,12 @@ public class AbilityFactory_Choose {
if (logic.equals("MostProminentInGame")) {
chosen = CardFactoryUtil.getMostProminentColor(AllZoneUtil.getCardsInGame());
}
if (logic.equals("MostProminentHumanCreatures")) {
CardList list = AllZoneUtil.getCreaturesInPlay(AllZone.getHumanPlayer());
if(list.isEmpty())
list = AllZoneUtil.getCardsInGame().getController(AllZone.getHumanPlayer()).getType("Creature");
chosen = CardFactoryUtil.getMostProminentColor(list);
}
}
if (chosen.equals("")) {
chosen = Constant.Color.Green;