Fixed some primitives from issue #1085

This commit is contained in:
Vittorio Alfieri
2023-07-11 15:27:19 +02:00
parent d724263d65
commit c170733af6
3 changed files with 65 additions and 52 deletions
+16 -9
View File
@@ -1,6 +1,6 @@
#Primitives Pack for Wagic the Homebrew.
#Please keep these card alphabetized, and try to have the "name=" line at the top of each card
#I sorted this programmatically so the other comments are removed except for AUTO_DEFINE - Vitty85 10-07-2023
#I sorted this programmatically so the other comments are removed except for AUTO_DEFINE - Vitty85 11-07-2023
[card]
name=Abandon Reason
target=<upto:2>creature
@@ -12601,7 +12601,8 @@ toughness=3
[/card]
[card]
name=Bloodline Shaman
auto={t}:activatechooseatype if type(creature[chosentype;zpos=1]|mylibrary)~morethan~0 then all(creature[chosentype;zpos=1]|mylibrary) moveto(myhand) else all(*[zpos=1]|mylibrary) moveto(mygraveyard) activatechooseend
aicode=activate all(*[zpos=1]|mylibrary) moveto(myreveal) and!( if cantargetcard(creature[chosentype]|*) then moveto(myhand) else moveto(mygraveyard) )!
auto={T}:name(Choose a creature type) transforms((,newability[chooseatype transforms((,newability[reveal:1 optionone name(Get creature) target(creature[chosentype]|reveal) moveto(myhand) optiononeend optiontwo name(Put in graveyard) target(*|reveal) moveto(mygraveyard) optiontwoend revealend])) oneshot chooseend])) oneshot
text={T}: Choose a creature type. Reveal the top card of your library. If that card is a creature card of the chosen type, put it into your hand. Otherwise, put it into your graveyard.
mana={1}{G}
type=Creature
@@ -13032,10 +13033,12 @@ toughness=2
[card]
name=Bog Down
abilities=hasotherkicker
target=player
other={2}{B}{S(land|mybattlefield)}{S(land|mybattlefield)} name(Pay Kicker)
auto=ifnot paid(alternative) then ability$!name(discard 2 cards) name(discard 2 cards) notatarget(<2>*|myhand) reject!$ targetedplayer
auto=if paid(alternative) then ability$!name(discard 3 cards) name(discard 3 cards) notatarget(<2>*|myhand) reject!$ targetedplayer
otherrestriction=type(land|mybattlefield)~morethan~1
auto=ifnot paid(alternative) then choice name(Opponent discards 2 cards) name(Opponent discards 2 cards) ability$!name(Discard 2 cards) name(Discard 2 cards) notatarget(<2>*|myhand) reject!$ opponent
auto=ifnot paid(alternative) then choice name(You discard 2 cards) name(You discard 2 cards) ability$!name(Discard 2 cards) name(Discard 2 cards) notatarget(<2>*|myhand) reject!$ controller
auto=if paid(alternative) then choice name(Opponent discards 3 cards) name(Opponent discards 3 cards) ability$!name(Discard 3 cards) name(Discard 3 cards) notatarget(<3>*|myhand) reject!$ opponent
auto=if paid(alternative) then choice name(You discard 3 cards) name(You discard 3 cards) ability$!name(Discard 3 cards) name(Discard 3 cards) notatarget(<3>*|myhand) reject!$ controller
text=Kicker - Sacrifice two lands. (You may sacrifice two lands in addition to any other costs as you cast this spell.) -- Target player discards two cards. If Bog Down was kicked, that player discards three cards instead.
mana={2}{B}
type=Sorcery
@@ -15395,8 +15398,9 @@ toughness=2
[/card]
[card]
name=Brothers Yamazaki
abilities=nolegend
auto=bushido(1/1)
auto=aslongas(Brothers Yamazaki|battlefield) nolegend <3
auto=if cantargetcard(*[legendary]|*) then if type(Brothers Yamazaki[legendary]|battlefield)~morethan~2 then name(Put in graveyard) name(Put in graveyard) name(Put in graveyard) target(Brothers Yamazaki[legendary]|mybattlefield) moveto(mygraveyard)
auto=lord(other Brothers Yamazaki|Battlefield) haste
auto=lord(other Brothers Yamazaki|Battlefield) 2/2
text=Bushido 1 (When this blocks or becomes blocked, it gets +1/+1 until end of turn.) -- If there are exactly two permanents named Brothers Yamazaki on the battlefield, the "legend rule" doesn't apply to them. -- Each other creature named Brothers Yamazaki gets +2/+2 and has haste.
@@ -27096,8 +27100,11 @@ subtype=Aura
[/card]
[card]
name=Death Wind
target=creature
auto=-X/-X
restriction=type(creature|battlefield)~morethan~0,compare(ishuman)~morethan~0
otherrestriction=type(creature|opponentbattlefield)~morethan~0,compare(ishuman)~equalto~0
other={X}{B} name(Cast for AI)
auto=if compare(ishuman)~equalto~0 then target(creature|opponentbattlefield) -X/-X ueot
auto=if compare(ishuman)~morethan~0 then name(Creature gets -X/-X) name(Creature gets -X/-X) target(creature|battlefield) -X/-X ueot
text=Target creature gets -X/-X until end of turn.
mana={X}{B}
type=Instant
@@ -54296,7 +54303,7 @@ toughness=3
name=Hero's Blade
auto={4}:equip
auto=teach(creature) 3/2
auto=@movedto(creature[legendary]|mybattlefield):may all(trigger[to]) rehook
auto=@movedto(creature[legendary]|mybattlefield):may name(Attach to legendary creature) all(trigger[to]) rehook
text=Equipped creature gets +3/+2. -- Whenever a legendary creature enters the battlefield under your control, you may attach Hero's Blade to it. -- Equip {4} ({4}: Attach to target creature you control. Equip only as a sorcery.)
mana={2}
type=Artifact