- Fixed ExiledMoveToGrave cost for optional triggers.

- Fixed script of Ulamog's Reclaimer.
This commit is contained in:
Sloth
2015-09-25 17:56:46 +00:00
parent 7bb70d6491
commit ada0948fb3
3 changed files with 11 additions and 4 deletions

View File

@@ -3,6 +3,6 @@ ManaCost:6
Types:Creature Eldrazi Processor
PT:5/5
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigPutCounters | TriggerDescription$ As CARDNAME enters the battlefield, you may put two cards your opponents own from exile into their owners' graveyards. If you do, CARDNAME enters the battlefield with four +1/+1 counters on it.
SVar:TrigPutCounters:AB$PutCounter | Cost$ ExiledMoveToGrave<2/Card.OppOwn/card an opponent owns> | Defined$ Self | CounterType$ P1P1 | CounterNum$ 4
SVar:TrigPutCounters:AB$ PutCounter | Cost$ ExiledMoveToGrave<2/Card.OppOwn/card an opponent owns> | Defined$ Self | CounterType$ P1P1 | CounterNum$ 4
SVar:Picture:http://www.wizards.com/global/images/magic/general/ulamogs_despoiler.jpg
Oracle:As Ulamog's Despoiler enters the battlefield, you may put two cards your opponents own from exile into their owners' graveyards. If you do, Ulamog's Despoiler enters the battlefield with four +1/+1 counters on it.

View File

@@ -4,7 +4,6 @@ Types:Creature Eldrazi Processor
PT:2/5
K:Devoid
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigChangeZone | OptionalDecider$ You | TriggerDescription$ When CARDNAME enters the battlefield, you may put a card an opponent owns from exile into that player's graveyard. If you do, return target instant or sorcery card from your graveyard to your hand.
SVar:TrigChangeZone:AB$ ChangeZone | Cost$ 0 | Origin$ Exile | Destination$ Graveyard | ValidTgts$ Card.OppOwn | SubAbility$ DBChangeZone
SVar:DBChangeZone:DB$ ChangeZone | ValidTgts$ Instant.YouOwn,Sorcery.YouOwn | TgtPrompt$ Select target instant or sorcery | Origin$ Graveyard | Destination$ Hand
SVar:TrigChangeZone:AB$ ChangeZone | Cost$ ExiledMoveToGrave<1/Card.OppOwn/card an opponent owns> | ValidTgts$ Instant.YouOwn,Sorcery.YouOwn | TgtPrompt$ Select target instant or sorcery | Origin$ Graveyard | Destination$ Hand
SVar:Picture:http://www.wizards.com/global/images/magic/general/ulamogs_reclaimer.jpg
Oracle:Devoid (This card has no color.)\nWhen Ulamog's Reclaimer enters the battlefield, you may put a card an opponent owns from exile into that player's graveyard. If you do, return target instant or sorcery card from your graveyard to your hand.

View File

@@ -453,7 +453,15 @@ public class HumanCostDecision extends CostDecisionMakerBase {
if (list.size() < c) {
return null;
}
final CardCollection choice = controller.getGame().getCardList(controller.getGui().many("Choose an exiled card to put into graveyard", "To graveyard", c, CardView.getCollection(list), CardView.get(source)));
Integer min = c;
if (ability.isOptionalTrigger()) {
min = 0;
}
final CardCollection choice = controller.getGame().getCardList(controller.getGui().many("Choose an exiled card to put into graveyard", "To graveyard", min, c, CardView.getCollection(list), CardView.get(source)));
if (choice == null || choice.size() < c) {
return null;
}
return PaymentDecision.card(choice);
}