mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
- Fixed Yawgmoth's Will.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user