mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Added Travelers Cloak
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -11258,6 +11258,7 @@ res/cardsfolder/t/traumatic_visions.txt svneol=native#text/plain
|
||||
res/cardsfolder/t/traumatize.txt svneol=native#text/plain
|
||||
res/cardsfolder/t/travel_preparations.txt -text
|
||||
res/cardsfolder/t/travelers_amulet.txt -text
|
||||
res/cardsfolder/t/travelers_cloak.txt -text
|
||||
res/cardsfolder/t/treacherous_link.txt svneol=native#text/plain
|
||||
res/cardsfolder/t/treacherous_pit_dweller.txt -text
|
||||
res/cardsfolder/t/treacherous_urge.txt svneol=native#text/plain
|
||||
|
||||
12
res/cardsfolder/t/travelers_cloak.txt
Normal file
12
res/cardsfolder/t/travelers_cloak.txt
Normal file
@@ -0,0 +1,12 @@
|
||||
Name:Traveler's Cloak
|
||||
ManaCost:2 U
|
||||
Types:Enchantment Aura
|
||||
K:Enchant creature
|
||||
A:SP$ Attach | Cost$ 2 U | ValidTgts$ Creature | AILogic$ Pump
|
||||
K:ETBReplacement:Other:ChooseLT
|
||||
SVar:ChooseLT:DB$ ChooseType | Defined$ You | Type$ Land | AILogic$ ChosenLandwalk | SpellDescription$ As CARDNAME enters the battlefield, choose a land type.
|
||||
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigDraw | TriggerDescription$ When CARDNAME enters the battlefield, draw a card.
|
||||
SVar:TrigDraw:AB$ Draw | Cost$ 0 | NumCards$ 1
|
||||
S:Mode$ Continuous | Affected$ Creature.EnchantedBy | AddKeyword$ ChosenTypewalk | Description$ Enchanted creature has landwalk of the chosen type.
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/travelers_cloak.jpg
|
||||
SetInfo:INV Common
|
||||
@@ -186,10 +186,22 @@ public class ChooseTypeEffect extends SpellAbilityEffect {
|
||||
valid = true;
|
||||
card.setChosenType(choice);
|
||||
}
|
||||
} else {
|
||||
// TODO
|
||||
// computer will need to choose a type
|
||||
card.setChosenType("Island");
|
||||
} else {//AI
|
||||
String choice = null;
|
||||
if (sa.hasParam("AILogic")) {
|
||||
final String logic = sa.getParam("AILogic");
|
||||
if (logic.equals("ChosenLandwalk")) {
|
||||
final List<Card> lands = p.getOpponent().getLandsInPlay();
|
||||
final List<String> totallands = CardType.getLandTypes();
|
||||
for (Card c : lands) {
|
||||
if (!invalidTypes.contains(c.getName())) {
|
||||
choice = c.getName();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
card.setChosenType(choice != null ? choice :"Island");
|
||||
valid = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user