From 8f432718cf27b8ab5316e7c64fb207b10de59010 Mon Sep 17 00:00:00 2001 From: Vittorio Alfieri Date: Fri, 5 Feb 2021 22:27:30 +0100 Subject: [PATCH] Fixed primitives with "preventalldamage from" ability. --- .../bin/Res/sets/primitives/borderline.txt | 2 +- projects/mtg/bin/Res/sets/primitives/mtg.txt | 26 +++++++++---------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/projects/mtg/bin/Res/sets/primitives/borderline.txt b/projects/mtg/bin/Res/sets/primitives/borderline.txt index 299b27f1c..ff1f0cf5c 100644 --- a/projects/mtg/bin/Res/sets/primitives/borderline.txt +++ b/projects/mtg/bin/Res/sets/primitives/borderline.txt @@ -8398,7 +8398,7 @@ toughness=4 [card] name=Chant of Vitu-Ghazi other={convoke} name(Convoke) -auto=preventalldamage from(creature) ueot +auto=preventalldamage from(creature|*) ueot auto=life:pdcount controller ueot text=Convoke (Each creature you tap while casting this spell reduces its cost by {1} or by one mana of that creature's color.) -- Prevent all damage that would be dealt by creatures this turn. You gain life equal to the damage prevented this way. mana={6}{W}{W} diff --git a/projects/mtg/bin/Res/sets/primitives/mtg.txt b/projects/mtg/bin/Res/sets/primitives/mtg.txt index bdb6e834e..d9aa6fe7e 100644 --- a/projects/mtg/bin/Res/sets/primitives/mtg.txt +++ b/projects/mtg/bin/Res/sets/primitives/mtg.txt @@ -7122,7 +7122,7 @@ toughness=1 [/card] [card] name=Auriok Replica -auto={W}{S}:name(prevent damage) notatarget(other *|battlefield,stack,hand,graveyard) transforms((,newability[preventalldamage from(this)])) ueot +auto={W}{S}:name(prevent damage) target(other *|battlefield,stack,hand,graveyard,commandzone,exile) transforms((,newability[preventalldamage from(this)])) ueot text={W}, Sacrifice Auriok Replica: Prevent all damage a source of your choice would deal to you this turn. mana={3} type=Artifact Creature @@ -7300,8 +7300,8 @@ toughness=8 [card] name=Avacyn, Guardian Angel abilities=flying,vigilance -auto={1}{W}:name(target Creature) target(other creature) activatechooseacolor transforms((,newability[preventalldamage from(*[chosencolor])])) ueot activatechooseend -auto={5}{W}{W}:name(target Player) target(player) && activatechooseacolor emblem transforms((,newability[preventalldamage to(targetedplayer) from(*[chosencolor])])) ueot activatechooseend +auto={1}{W}:name(target Creature) target(other creature) activatechooseacolor transforms((,newability[preventalldamage from(*[chosencolor]|*)])) ueot activatechooseend +auto={5}{W}{W}:name(target Player) target(player) && activatechooseacolor emblem transforms((,newability[preventalldamage to(targetedplayer) from(*[chosencolor]|*)])) ueot activatechooseend text=Flying, vigilance -- {1}{W}: Prevent all damage that would be dealt to another target creature this turn by sources of the color of your choice. -- {5}{W}{W}: Prevent all damage that would be dealt to target player this turn by sources of the color of your choice. mana={2}{W}{W}{W} type=Legendary Creature @@ -15894,7 +15894,7 @@ toughness=2 [card] name=Burrenton Forge-Tender abilities=protection from red -auto={S}:name(prevent all damage) notatarget(other *[red]|battlefield,stack,graveyard) transforms((,newability[preventalldamage from(this)])) ueot +auto={S}:name(Prevent all damage from red source) target(*[red]|battlefield,stack,hand,graveyard,commandzone,exile) transforms((,newability[preventalldamage from(this)])) ueot text=Protection from red -- Sacrifice Burrenton Forge-Tender: Prevent all damage a red source of your choice would deal this turn. mana={W} type=Creature @@ -18595,7 +18595,7 @@ toughness=* [/card] [card] name=Champion Lancer -auto=preventAllDamage from(creature) to(this) +auto=preventAllDamage from(creature|*) to(this) text=Prevent all damage that would be dealt to Champion Lancer by creatures. mana={4}{W}{W} type=Creature @@ -26620,7 +26620,7 @@ toughness=7 [card] name=Dazzling Reflection target=creature -auto=preventalldamage from(this) +auto=preventalldamage from(this) ueot auto=dynamicability text=You gain life equal to target creature's power. The next time that creature would deal damage this turn, prevent that damage. mana={1}{W} @@ -37187,7 +37187,7 @@ type=Sorcery [/card] [card] name=Ethereal Haze -auto=preventalldamage from(creature) ueot +auto=preventalldamage from(creature|*) ueot text=Prevent all damage that would be dealt by creatures this turn. mana={W} type=Instant @@ -67396,7 +67396,7 @@ toughness=2 name=Lithomancer's Focus target=creature|battlefield auto=2/2 ueot -auto=preventalldamage from(*[colorless]) ueot +auto=preventalldamage from(*[colorless]|*) ueot text=Target creature gets +2/+2 until end of turn. Prevent all damage that would be dealt to that creature this turn by colorless sources. mana={W} type=Instant @@ -68788,7 +68788,7 @@ toughness=7 [/card] [card] name=Luminesce -auto=preventalldamage from(*[red;black]|battlefield,stack) +auto=preventalldamage from(*[red;black]|*) ueot text=Prevent all damage that black sources and red sources would deal this turn. mana={W} type=Instant @@ -87770,7 +87770,7 @@ type=Sorcery [card] name=Prahv, Spires of Order auto={T}:add{1} -auto={4}{W}{U}{T}:name(prevent damage) notatarget(*|battlefield,stack,hand,graveyard) transforms((,newability[preventalldamage from(this)])) ueot +auto={4}{W}{U}{T}:name(prevent damage) target(*|battlefield,stack,hand,graveyard,commandzone,exile) transforms((,newability[preventalldamage from(this)])) ueot text={T}: Add {1} to your mana pool. -- {4}{W}{U}, {T}: Prevent all damage a source of your choice would deal this turn. type=Land [/card] @@ -88606,7 +88606,7 @@ type=Enchantment [/card] [card] name=Prismatic Strands -auto=chooseacolor preventAllDamage from(*[chosencolor]) chooseend +auto=chooseacolor preventAllDamage from(*[chosencolor]|*) ueot chooseend flashback={T(creature[white]|mybattlefield)} text=Prevent all damage that sources of the color of your choice would deal this turn. -- Flashback - Tap an untapped white creature you control. (You may cast this card from your graveyard for its flashback cost. Then exile it.) mana={2}{W} @@ -131082,7 +131082,7 @@ toughness=3 [card] name=Wall of Putrid Flesh abilities=defender,protection from white -auto=preventAllDamage from(creature[enchanted]) to(this) +auto=preventAllDamage from(creature[enchanted]|battlefield) to(this) text=Defender (This creature can't attack.) -- Protection from white -- Prevent all damage that would be dealt to Wall of Putrid Flesh by enchanted creatures. mana={2}{B} type=Creature @@ -131245,7 +131245,7 @@ toughness=1 [card] name=Wall of Vapor abilities=defender -auto=preventAllDamage from(creature[attacking]) to(this) +auto=preventAllDamage from(creature[attacking]|opponentbattlefield) to(this) text=Defender (This creature can't attack.) -- Prevent all damage that would be dealt to Wall of Vapor by creatures it's blocking. mana={3}{U} type=Creature