- Fixed Yawgmoth's Will.

This commit is contained in:
Sloth
2012-12-10 09:12:46 +00:00
parent 5ce6c25084
commit ab1f1dbf0e
2 changed files with 3 additions and 9 deletions

View File

@@ -2,9 +2,10 @@ Name:Yawgmoth's Will
ManaCost:2 B
Types:Sorcery
Text:no text
A:SP$ Effect | Cost$ 2 B | Name$ Yawgmoth's Will Effect | StaticAbilities$ STPlay | Keywords$ Exile | SpellDescription$ Until end of turn, you may play cards from your graveyard. If a card would be put into your graveyard from anywhere this turn, exile that card instead.
A:SP$ Effect | Cost$ 2 B | Name$ Yawgmoth's Will Effect | ReplacementEffects$ GraveToExile | StaticAbilities$ STPlay | SVars$ Exile | SpellDescription$ Until end of turn, you may play cards from your graveyard. If a card would be put into your graveyard from anywhere this turn, exile that card instead.
SVar:STPlay:Mode$ Continuous | EffectZone$ Command | Affected$ Card.YouCtrl | AffectedZone$ Graveyard | AddHiddenKeyword$ May be played | Description$ You may play cards from your graveyard.
SVar:Exile:If a card would be put into your graveyard from anywhere, exile it instead.
SVar:GraveToExile:Event$ Moved | ActiveZones$ Command | Destination$ Graveyard | ValidCard$ Card.nonToken+YouOwn | ReplaceWith$ Exile | Description$ If a card would be put into your graveyard from anywhere, exile it instead.
SVar:Exile:AB$ ChangeZone | Cost$ 0 | Hidden$ True | Origin$ All | Destination$ Exile | Defined$ ReplacedCard
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/yawgmoths_will.jpg

View File

@@ -479,18 +479,11 @@ public class GameAction {
final Player owner = c.getOwner();
final PlayerZone grave = owner.getZone(ZoneType.Graveyard);
final PlayerZone exile = owner.getZone(ZoneType.Exile);
final List<Card> ownerBoard = new ArrayList<Card>(owner.getCardsIn(ZoneType.Battlefield));
if (c.getName().equals("Nissa's Chosen") && origZone.is(ZoneType.Battlefield)) {
return this.moveToLibrary(c, -1);
}
for (final Card card : ownerBoard) {
if (card.hasKeyword("If a card would be put into your graveyard from anywhere, exile it instead.")) {
return this.moveTo(exile, c);
}
}
if (c.hasKeyword("If CARDNAME would be put into a graveyard, exile it instead.")) {
return this.moveTo(exile, c);
}