Skip to content

Commit

Permalink
Major Corrections to WAR and removing crashing cards
Browse files Browse the repository at this point in the history
Cards that check the colors of mana that lands on the opponent battlefield crashes the game, hard to reproduce but happens often enought that I decided to remove them.

Minor fixes in set and Major fixes in WAR primitives
  • Loading branch information
EduardoMunozGomez committed May 1, 2019
1 parent d943778 commit 8b62062
Show file tree
Hide file tree
Showing 12 changed files with 256 additions and 276 deletions.
4 changes: 2 additions & 2 deletions projects/mtg/bin/Res/sets/primitives/BBD.txt
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ type=Sorcery
[card]
name=Skystreamer
abilities=flying
auto=target(player) 4 life
auto=target(player) life:4
text=Assist (Another player can pay up to {4} of this spell's cost.) -- Flying -- When Skystreamer enters the battlefield, target player gains 4 life.
mana={4}{W}
type=Creature
Expand Down Expand Up @@ -408,7 +408,7 @@ toughness=2

[card]
name=Gang Up
target=creature[power<=X]
target=creature[power<=prex]
auto=destroy
text=Assist (Another player can pay up to {X} of this spell's cost. You choose the value of X.) -- Destroy target creature with power X or less.
mana={X}{B}
Expand Down
2 changes: 1 addition & 1 deletion projects/mtg/bin/Res/sets/primitives/DOM.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1491,7 +1491,7 @@ type=Instant

[card]
name=Arbor Armament
target=creature
target=creature
auto=counter(1/1)
auto=reach
text=Put a +1/+1 counter on target creature. That creature gains reach until end of turn.
Expand Down
8 changes: 4 additions & 4 deletions projects/mtg/bin/Res/sets/primitives/GRN.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1062,8 +1062,8 @@ type=Instant

[card]
name=Circuitous Route
aicode=activate moveTo(myBattlefield) and!(tap(noevent))! target(<upto:2>land[basic;gate]|myLibrary)
auto=name(search card) reveal:plibrarycount optionone name(choose card) target(<upto:2>land[basic;gate]|reveal) moveto(ownerlibrary) and!( becomes(tobecast) ueot )! optiononeend optiontwo name(put back) target(<1>*|reveal) moveto(ownerlibrary) and!( all(*|reveal) moveto(ownerlibrary) and!(shuffle)! )! optiontwoend afterrevealed all(tobecast|mylibrary) moveto(ownerlibrary) and!(moveTo(myBattlefield) and!(tap(noevent))!)! afterrevealedend revealend
aicode=activate moveTo(myBattlefield) and!(tap(noevent))! target(<upto:2>*[basic;gate]|myLibrary)
auto=name(search card) reveal:plibrarycount optionone name(choose card) target(<upto:2>*[basic;gate]|reveal) moveto(ownerlibrary) and!( becomes(tobecast) ueot )! optiononeend optiontwo name(put back) target(<1>*|reveal) moveto(ownerlibrary) and!( all(*|reveal) moveto(ownerlibrary) and!(shuffle)! )! optiontwoend afterrevealed all(tobecast|mylibrary) moveto(ownerlibrary) and!(moveTo(myBattlefield) and!(tap(noevent))!)! afterrevealedend revealend
text=Search your library for up to two basic land cards and/or Gate cards, put them onto the battlefield tapped, then shuffle your library.
mana={3}{G}
type=Sorcery
Expand Down Expand Up @@ -1315,8 +1315,8 @@ toughness=2
name=Crackling Drake
abilities=flying
auto=draw:1
anyzone=pginstantsorcery/4
anyzone=peinstantsorcery/4
anyzone=pginstantsorcery/4 cdaactive
#anyzone=peinstantsorcery/4 cdaactive
text=Flying -- Crackling Drake's power is equal to the total number of instant and sorcery cards you own in exile and in your graveyard. -- When Crackling Drake enters the battlefield, draw a card.
mana={U}{U}{R}{R}
type=Creature
Expand Down
8 changes: 4 additions & 4 deletions projects/mtg/bin/Res/sets/primitives/HOU.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ name=Angel of Condemnation
abilities=flying, vigilance
auto={2}{W}{T}:(blink)ueot target(other creature|battlefield)
auto=@exerted(this):(blink)forsrc target(other creature|battlefield)
auto=@combat(attacking) source(this):may exert
auto={2}{W}{T}:exert
text=Flying, vigilance -- {2}{W}, {T}: Exile another target creature. Return that card to the battlefield under its owner's control at the beginning of the next end step. -- {2}{W}, {T}, Exert Angel of Condemnation: Exile another target creature until Angel of Condemnation leaves the battlefield. (An exerted creature won't untap during your next untap step.)
mana={2}{W}{W}
type=Creature
Expand Down Expand Up @@ -393,7 +393,7 @@ subtype=Aura Curse

[card]
name=Hour of Eternity
target=<upto:X>creature|myGraveyard
target=<upto:prex>creature|myGraveyard
auto=clone and!( transforms((Zombie,removemc,setpower=4,settoughness=4,black)) forever )!
auto=moveto(exile)
text=Exile X target creature cards from your graveyard. For each card exiled this way, create a token that's a copy of that card, except it's a 4/4 black Zombie.
Expand Down Expand Up @@ -617,7 +617,7 @@ toughness=*
[card]
name=Banewhip Punisher
auto=may counter(-1/-1,1) target(creature)
auto={B}{S}:destroy target(creature[counter(-1/-1)])
auto={B}{S}:destroy target(creature[counter{-1/-1.1}])
text=When Banewhip Punisher enters the battlefield, you may put a -1/-1 counter on target creature. -- {B}, Sacrifice Banewhip Punisher: Destroy target creature that has a -1/-1 counter on it.
mana={2}{B}
type=Creature
Expand Down Expand Up @@ -1755,7 +1755,7 @@ subtype=Equipment

[card]
name=God-Pharaoh's Gift
auto=@each my combatbegins:may target(creature|graveyard) clone and!( transforms((Zombie,setpower=4,settoughness=4,black,haste ueot)) forever )! && moveTo(exile)
auto=@each my combatbegins:may target(creature|mygraveyard) clone and!( transforms((Zombie,setpower=4,settoughness=4,black,haste ueot)) forever )! && moveTo(exile)
text=At the beginning of combat on your turn, you may exile a creature card from your graveyard. If you do, create a token that's a copy of that card, except it's a 4/4 black Zombie. It gains haste until end of turn.
mana={7}
type=Artifact
Expand Down
7 changes: 5 additions & 2 deletions projects/mtg/bin/Res/sets/primitives/M19.txt
Original file line number Diff line number Diff line change
Expand Up @@ -927,8 +927,11 @@ toughness=2

[card]
name=Sarkhan's Unsealing
auto=@movedTo(creature[6>=power>=4]|mystack):damage:4 target(creature,player)
auto=@movedTo(creature[power>=7]|mystack):damage:4 opponent && all(creature,planeswalker) damage:1
auto=@movedTo(creature[power=4]|mystack):damage:4 target(creature,player)
auto=@movedTo(creature[power=5]|mystack):damage:4 target(creature,player)
auto=@movedTo(creature[power=6]|mystack):damage:4 target(creature,player)
auto=@movedTo(creature[power>=7]|mystack):damage:4 all(creature,planeswalker|opponentBattlefield)
auto=@movedTo(creature[power>=7]|mystack):damage:4 opponent
text=Whenever you cast a creature spell with power 4, 5, or 6, Sarkhan's Unsealing deals 4 damage to any target. -- Whenever you cast a creature spell with power 7 or greater, Sarkhan's Unsealing deals 4 damage to each opponent and each creature and planeswalker they control.
mana={3}{R}
type=Enchantment
Expand Down
7 changes: 3 additions & 4 deletions projects/mtg/bin/Res/sets/primitives/RIX.txt
Original file line number Diff line number Diff line change
Expand Up @@ -256,10 +256,9 @@ type=Enchantment

[card]
name=Crashing Tide
abilities=flash
target=creature
auto=if type(creature[merfolk]|mybattlefield)~lessthan~1 then -flash
auto=target(creature) moveto(ownerhand)
auto=if type(creature[merfolk]|mybattlefield)~morethan~0 then asflash
target=creature
auto=moveTo(ownerhand)
auto=draw:1 controller
text=Crashing Tide has flash as long as you control a Merfolk. -- Return target creature to its owner's hand. -- Draw a card.
mana={2}{U}
Expand Down
2 changes: 1 addition & 1 deletion projects/mtg/bin/Res/sets/primitives/RNA.txt
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@ toughness=1

[card]
name=Light Up the Stage
auto=moveto(exile) and!(transforms((,canplayfromexile)))! all(*[zpos<=2]|mylibrary)
auto=moveto(exile) and!(transforms((,canplayfromexile))ueot)! all(*[zpos<=2]|mylibrary)
text=Spectacle {R} (You may cast this spell for its spectacle cost rather than its mana cost if an opponent lost life this turn.) -- Exile the top two cards of your library. Until the end of your next turn, you may play those cards.
other={R} name(Spectacle)
otherrestriction=compare(oplifelost)~morethan~0
Expand Down
Loading

0 comments on commit 8b62062

Please sign in to comment.