mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
- Added Thought Prison.
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -9171,6 +9171,7 @@ res/cardsfolder/t/thought_devourer.txt svneol=native#text/plain
|
|||||||
res/cardsfolder/t/thought_eater.txt svneol=native#text/plain
|
res/cardsfolder/t/thought_eater.txt svneol=native#text/plain
|
||||||
res/cardsfolder/t/thought_hemorrhage.txt -text svneol=unset#text/plain
|
res/cardsfolder/t/thought_hemorrhage.txt -text svneol=unset#text/plain
|
||||||
res/cardsfolder/t/thought_nibbler.txt svneol=native#text/plain
|
res/cardsfolder/t/thought_nibbler.txt svneol=native#text/plain
|
||||||
|
res/cardsfolder/t/thought_prison.txt -text svneol=unset#text/plain
|
||||||
res/cardsfolder/t/thought_reflection.txt -text
|
res/cardsfolder/t/thought_reflection.txt -text
|
||||||
res/cardsfolder/t/thought_scour.txt -text
|
res/cardsfolder/t/thought_scour.txt -text
|
||||||
res/cardsfolder/t/thoughtbind.txt svneol=native#text/plain
|
res/cardsfolder/t/thoughtbind.txt svneol=native#text/plain
|
||||||
|
|||||||
14
res/cardsfolder/t/thought_prison.txt
Normal file
14
res/cardsfolder/t/thought_prison.txt
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
Name:Thought Prison
|
||||||
|
ManaCost:5
|
||||||
|
Types:Artifact
|
||||||
|
Text:no text
|
||||||
|
T:Mode$ ChangesZone | ValidCard$ Card.Self | Origin$ Any | Destination$ Battlefield | Execute$ TrigChangeZone | OptionalDecider$ You | TriggerDescription$ Imprint - When CARDNAME enters the battlefield, you may have target player reveal his or her hand. If you do, choose a nonland card from it and exile that card.
|
||||||
|
SVar:TrigChangeZone:AB$ ChangeZone | Cost$ 0 | Origin$ Hand | Destination$ Exile | ChangeType$ Card.nonLand | ChangeNum$ 1 | ValidTgts$ Player | TgtPrompt$ Select target player | Chooser$ You | Imprint$ True | Hidden$ True
|
||||||
|
T:Mode$ SpellCast | ValidCard$ Card.cmcEQThoughtX,Card.SharesColorWith Imprinted | Execute$ TrigDamage | TriggerZones$ Battlefield | TriggerDescription$ Whenever a player casts a spell that shares a color or converted mana cost with the exiled card, CARDNAME deals 2 damage to that player.
|
||||||
|
SVar:TrigDamage:AB$ DealDamage | Cost$ 0 | NumDmg$ 2 | Defined$ TriggeredCardController
|
||||||
|
SVar:ThoughtX:Count$ImprintedCardManaCost
|
||||||
|
SVar:RemAIDeck:True
|
||||||
|
SVar:RemRandomDeck:True
|
||||||
|
SVar:Rarity:Uncommon
|
||||||
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/thought_prison.jpg
|
||||||
|
End
|
||||||
@@ -6925,6 +6925,12 @@ public class Card extends GameEntity implements Comparable<Card> {
|
|||||||
if (list.isEmpty() || !this.sharesColorWith(list.get(0))) {
|
if (list.isEmpty() || !this.sharesColorWith(list.get(0))) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
} if (restriction.equals("Imprinted")) {
|
||||||
|
for (final Card card : source.getImprinted()) {
|
||||||
|
if (!this.sharesColorWith(card)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
boolean shares = false;
|
boolean shares = false;
|
||||||
for (final Card card : sourceController.getCardsIn(Constant.Zone.Battlefield)) {
|
for (final Card card : sourceController.getCardsIn(Constant.Zone.Battlefield)) {
|
||||||
|
|||||||
@@ -2728,12 +2728,19 @@ public class CardFactoryUtil {
|
|||||||
return c.getImprinted().get(0).getNetAttack();
|
return c.getImprinted().get(0).getNetAttack();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (l[0].contains("ImprintedCardToughness")) {
|
if (l[0].contains("ImprintedCardToughness")) {
|
||||||
if (c.getImprinted().size() > 0) {
|
if (c.getImprinted().size() > 0) {
|
||||||
return c.getImprinted().get(0).getNetDefense();
|
return c.getImprinted().get(0).getNetDefense();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (l[0].contains("ImprintedCardManaCost")) {
|
||||||
|
if (c.getImprinted().get(0).getCMC() > 0) {
|
||||||
|
return c.getImprinted().get(0).getCMC();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (l[0].contains("GreatestPowerYouControl")) {
|
if (l[0].contains("GreatestPowerYouControl")) {
|
||||||
final CardList list = AllZoneUtil.getCreaturesInPlay(c.getController());
|
final CardList list = AllZoneUtil.getCreaturesInPlay(c.getController());
|
||||||
int highest = 0;
|
int highest = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user