- Added Thought Devourer

This commit is contained in:
moomarc
2013-02-28 10:38:53 +00:00
parent 3622ad3fab
commit 6957e58de5
3 changed files with 37 additions and 5 deletions

1
.gitattributes vendored
View File

@@ -10816,6 +10816,7 @@ res/cardsfolder/t/thornwind_faeries.txt svneol=native#text/plain
res/cardsfolder/t/thought_courier.txt svneol=native#text/plain
res/cardsfolder/t/thought_devourer.txt svneol=native#text/plain
res/cardsfolder/t/thought_eater.txt svneol=native#text/plain
res/cardsfolder/t/thought_gorger.txt -text
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_prison.txt -text svneol=unset#text/plain

View File

@@ -0,0 +1,17 @@
Name:Thought Gorger
ManaCost:2 B B
Types:Creature Horror
PT:2/2
K:Trample
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ EatMyThoughts | TriggerController$ TriggeredCardController | TriggerDescription$ When CARDNAME enters the battlefield, put a +1/+1 counter on it for each card in your hand. If you do, discard your hand.
SVar:EatMyThoughts:AB$ PutCounter | Cost$ 0 | Defined$ Self | CounterNum$ OldThoughts | CounterType$ P1P1 | References$ OldThoughts | RememberCounters$ True | SubAbility$ GorgeOnThoughts
SVar:GorgeOnThoughts:DB$ Discard | Mode$ Hand | Defined$ You | ConditionDescription$ If you do, | ConditionCheckSVar$ StrengthOfThoughts | ConditionSVarCompare$ GE1
SVar:OldThoughts:Count$InYourHand
SVar:StrengthOfThoughts:Count$CountersAdded P1P1 Card.Self
T:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Any | ValidCard$ Card.Self | Execute$ BringBackThoughts | TriggerController$ TriggeredCardController | TriggerDescription$ When CARDNAME leaves the battlefield, draw a card for each +1/+1 counter on it.
SVar:BringBackThoughts:AB$ Draw | Cost$ 0 | NumCards$ Disgorge | References$ Disgorge | Defined$ TriggeredCardController
SVar:Disgorge:TriggeredCard$CardCounters.P1P1
SVar:RemAIDeck:True
SVar:Picture:http://www.wizards.com/global/images/magic/general/thought_gorger.jpg
SetInfo:ROE|Rare|http://magiccards.info/scans/en/roe/129.jpg
Oracle:Trample\nWhen Thought Gorger enters the battlefield, put a +1/+1 counter on it for each card in your hand. If you do, discard your hand.\nWhen Thought Gorger leaves the battlefield, draw a card for each +1/+1 counter on it.

View File

@@ -1453,6 +1453,22 @@ public class CardFactoryUtil {
return CardFactoryUtil.doXMath(c.getRemembered().size(), m, c);
}
// Count$CountersAdded <CounterType> <ValidSource>
if (l[0].startsWith("CountersAdded")) {
final String[] components = l[0].split(" ", 3);
final CounterType counterType = CounterType.valueOf(components[1]);
String restrictions = components[2];
final String[] rest = restrictions.split(",");
List<Card> candidates = Singletons.getModel().getGame().getCardsInGame();
candidates = CardLists.getValidCards(candidates, rest, cardController, c);
int added = 0;
for (final Card counterSource : candidates) {
added += c.getCountersAddedBy(counterSource, counterType);
}
return CardFactoryUtil.doXMath(added, m, c);
}
if (l[0].startsWith("RolledThisTurn")) {
return Singletons.getModel().getGame().getPhaseHandler().getPlanarDiceRolledthisTurn();
}
@@ -1675,8 +1691,6 @@ public class CardFactoryUtil {
}
}
// Count$Hellbent.<numHB>.<numNotHB>
if (sq[0].contains("Hellbent")) {
if (cardController.hasHellbent()) {