add logic

This commit is contained in:
Northmoc
2020-12-07 09:07:35 -05:00
parent f9a601893c
commit 0216b52d1c

View File

@@ -3,7 +3,7 @@ ManaCost:2 G G
Types:Enchantment
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigLook | TriggerDescription$ At the beginning of your upkeep, look at the top two cards of your library. You may sacrifice CARDNAME and pay {2}{G}{G}. If you do, put one of those cards into your hand. If you dont, put one of those cards on the bottom of your library.
SVar:TrigLook:DB$ PeekAndReveal | Defined$ You | PeekAmount$ 2 | NoReveal$ True | SubAbility$ DBBottom
SVar:DBBottom:DB$ Dig | UnlessCost$ Sac<1/CARDNAME> 2 G G | UnlessPayer$ You | UnlessResolveSubs$ WhenPaid | SubAbility$ DBPutHand | DigNum$ 2 | ChangeNum$ 1 | DestinationZone$ Library | DestinationZone2$ Library | LibraryPosition$ -1 | LibraryPosition2$ 0 | ChangeValid$ Card
SVar:DBPutHand:DB$ Dig | UnlessSwitched$ True | DigNum$ 2 | ChangeNum$ 1 | DestinationZone$ Hand | DestinationZone2$ Library | LibraryPosition2$ 0 | ChangeValid$ Card
SVar:DBBottom:DB$ Dig | UnlessCost$ Sac<1/CARDNAME> 2 G G | UnlessPayer$ You | UnlessResolveSubs$ WhenPaid | UnlessAI$ Never | SubAbility$ DBPutHand | DigNum$ 2 | ChangeNum$ 1 | AILogic$ WorstCard | DestinationZone$ Library | DestinationZone2$ Library | LibraryPosition$ -1 | LibraryPosition2$ 0 | ChangeValid$ Card
SVar:DBPutHand:DB$ Dig | DigNum$ 2 | ChangeNum$ 1 | DestinationZone$ Hand | DestinationZone2$ Library | LibraryPosition2$ 0 | ChangeValid$ Card
DeckHas:Ability$Sacrifice
Oracle:At the beginning of your upkeep, look at the top two cards of your library. You may sacrifice Preferred Selection and pay {2}{G}{G}. If you do, put one of those cards into your hand. If you dont, put one of those cards on the bottom of your library.