Merge pull request #1613 from Northmoc/ydmc_oracle

YDMC: Oracle of the Alpha and support
This commit is contained in:
Paul Hammerton
2022-09-30 15:05:55 +01:00
committed by GitHub
2 changed files with 20 additions and 2 deletions

View File

@@ -48,8 +48,14 @@ public class MakeCardEffect extends SpellAbilityEffect {
} else { } else {
names.add(n); names.add(n);
} }
} else if (sa.hasParam("Names")) {
List<String> nameList = Arrays.asList(sa.getParam("Names").split(","));
for (String s : nameList) {
// Cardnames that include "," must use ";" instead here
s = s.replace(";", ",");
names.add(s);
} }
if (sa.hasParam("DefinedName")) { } else if (sa.hasParam("DefinedName")) {
final CardCollection def = AbilityUtils.getDefinedCards(source, sa.getParam("DefinedName"), sa); final CardCollection def = AbilityUtils.getDefinedCards(source, sa.getParam("DefinedName"), sa);
if (def.size() > 0) { if (def.size() > 0) {
for (final Card c : def) { for (final Card c : def) {

View File

@@ -0,0 +1,12 @@
Name:Oracle of the Alpha
ManaCost:2 U
Types:Creature Bird Wizard
PT:2/3
K:Flying
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigConjure | TriggerDescription$ When CARDNAME enters the battlefield, conjure the Power Nine into your library, then shuffle.
SVar:TrigConjure:DB$ MakeCard | Conjure$ True | Names$ Ancestral Recall,Black Lotus,Mox Emerald,Mox Jet,Mox Pearl,Mox Ruby,Mox Sapphire,Time Walk,Timetwister | Zone$ Library
T:Mode$ Attacks | ValidCard$ Card.Self | Execute$ DBScry | TriggerZones$ Battlefield | TriggerDescription$ Whenever CARDNAME attacks, scry 1.
SVar:DBScry:DB$ Scry
SVar:HasAttackEffect:TRUE
DeckHas:Type$Artifact|Instant|Sorcery & Ability$Sacrifice
Oracle:Flying\nWhen Oracle of the Alpha enters the battlefield, conjure the Power Nine into your library, then shuffle.\nWhenever Oracle of the Alpha attacks, scry 1.