Fixed some primitives from issue #1085 and from Discord channel, fixed all curses primitives and targets, added new keywords "oppotgt" and "ctrltgt" to check wich player has been targeted from a card, fixed an issue on "chooseaname" ability.

This commit is contained in:
Vittorio Alfieri
2023-07-13 17:24:11 +02:00
parent c170733af6
commit fbfcb7d3ac
9 changed files with 298 additions and 174 deletions

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 11-07-2023
#I sorted this programmatically so the other comments are removed except for AUTO_DEFINE - Vitty85 13-07-2023
[card]
name=Abandon Reason
target=<upto:2>creature
@@ -22427,8 +22427,8 @@ type=Instant
[/card]
[card]
name=Coordinated Barrage
target=creature[attacking;blocking]
auto=chooseatype damage:type:*[chosentype]:mybattlefield chooseend
restriction=type(creature[attacking;blocking]|battlefield)~morethan~0
auto=chooseatype name(Deal damage) target(creature[attacking;blocking]|battlefield) damage:type:*[chosentype]:mybattlefield chooseend
text=Choose a creature type. Coordinated Barrage deals damage to target attacking or blocking creature equal to the number of permanents you control of the chosen type.
mana={W}
type=Instant
@@ -23848,8 +23848,8 @@ type=Enchantment
[card]
name=Crosis, the Purger
abilities=flying
auto=@combatdamagefoeof(player) from(this):pay({2}{B}) activatechooseacolor all(*[chosencolor]|opponenthand) reject activatechooseend
auto=@combatdamageof(player) from(this):pay({2}{B}) activatechooseacolor all(*[chosencolor]|myhand) reject activatechooseend
auto=@combatdamagefoeof(player) from(this):may name(Pay and choose color) pay({2}{B}) name(Pay and choose color) transforms((,newability[choice name(Choose red) target(*|opponenthand) moveto(myreveal) and!( moveto(opponenthand) and!( reject all(*[red]|opponenthand) )! )!],newability[choice name(Choose green) target(*|opponenthand) moveto(myreveal) and!( moveto(opponenthand) and!( reject all(*[green]|opponenthand) )! )!],newability[choice name(Choose blue) target(*|opponenthand) moveto(myreveal) and!( moveto(opponenthand) and!( reject all(*[blue]|opponenthand) )! )!],newability[choice name(Choose white) target(*|opponenthand) moveto(myreveal) and!( moveto(opponenthand) and!( reject all(*[white]|opponenthand) )! )!],newability[choice name(Choose black) target(*|opponenthand) moveto(myreveal) and!( moveto(opponenthand) and!( reject all(*[black]|opponenthand) )! )!])) oneshot
auto=@combatdamageof(player) from(this):may name(Pay and choose color) pay({2}{B}) name(Pay and choose color) transforms((,newability[choice name(Choose red) reject all(*[red]|myhand)],newability[choice name(Choose green) reject all(*[green]|opponenthand)],newability[choice name(Choose blue) reject all(*[blue]|opponenthand)],newability[choice name(Choose white) reject all(*[white]|opponenthand)],newability[choice name(Choose black) reject all(*[black]|opponenthand)])) oneshot
text=Flying -- Whenever Crosis, the Purger deals combat damage to a player, you may pay {2}{B}. If you do, choose a color, then that player reveals his or her hand and discards all cards of that color.
mana={3}{U}{B}{R}
type=Legendary Creature
@@ -24994,7 +24994,7 @@ type=Enchantment
[card]
name=Curse of Oblivion
target=player
auto=@each targetedplayer upkeep:ability$!name(exile 2 cards from graveyard) target(<2>*|mygraveyard) moveTo(exile)!$ targetedplayer
auto=@each targetedplayer upkeep:name(Exile 2 cards from graveyard) ability$!name(Exile 2 cards from graveyard) name(Exile 2 cards from graveyard) target(<2>*|mygraveyard) moveto(exile)!$ targetedplayer
text=At the beginning of enchanted player's upkeep, that player exiles two cards from his or her graveyard.
mana={3}{B}
type=Enchantment
@@ -25003,7 +25003,7 @@ subtype=Aura Curse
[card]
name=Curse of Stalked Prey
target=player
auto=@combatdamaged(targetedplayer) from(creature):all(trigger[from]) counter(1/1)
auto=@combatdamaged(targetedplayer) from(creature):name(Put 1/1 counter) all(trigger[from]) name(Put 1/1 counter) counter(1/1)
text=Enchant player -- Whenever a creature deals combat damage to enchanted player, put a +1/+1 counter on that creature.
mana={1}{R}
type=Enchantment
@@ -25012,7 +25012,7 @@ subtype=Aura Curse
[card]
name=Curse of the Bloody Tome
target=player
auto=@each targetedplayer upkeep:deplete:2 targetedplayer
auto=@each targetedplayer upkeep:name(Mill 2 cards) deplete:2 targetedplayer
text=Enchant player -- At the beginning of enchanted player's upkeep, that player mills two cards.
mana={2}{U}
type=Enchantment
@@ -25030,7 +25030,7 @@ subtype=Aura Curse
[card]
name=Curse of the Pierced Heart
target=player
auto=@each targetedplayer upkeep:damage:1 targetedplayer
auto=@each targetedplayer upkeep:name(Deal damage) damage:1 targetedplayer
text=Enchant player -- At the beginning of enchanted player's upkeep, Curse of the Pierced Heart deals 1 damage to that player.
mana={1}{R}
type=Enchantment
@@ -25047,7 +25047,8 @@ type=Sorcery
[card]
name=Curse of Thirst
target=player
auto=@each targetedplayer upkeep:damage:targetedcurses
auto=if compare(oppotgt)~morethan~0 then name(Target opponent) name(Target opponent) transforms((,newability[@each opponent upkeep:damage:targetedcurses opponent])) forever
auto=if compare(ctrltgt)~morethan~0 then name(Target yourself) name(Target yourself) transforms((,newability[@each my upkeep:damage:targetedcurses controller])) forever
text=Enchant player -- At the beginning of enchanted player's upkeep, Curse of Thirst deals damage to that player equal to the number of Curses attached to him or her.
mana={4}{B}
type=Enchantment