From 81ea744e3844bc73aa591840c3bfc297b5b52a5e Mon Sep 17 00:00:00 2001 From: Hanmac Date: Tue, 10 Apr 2018 07:15:26 +0200 Subject: [PATCH 1/2] fixed Druid's Deliverance --- forge-gui/res/cardsfolder/d/druids_deliverance.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/forge-gui/res/cardsfolder/d/druids_deliverance.txt b/forge-gui/res/cardsfolder/d/druids_deliverance.txt index 0d9aefa4563..a4a95533d28 100644 --- a/forge-gui/res/cardsfolder/d/druids_deliverance.txt +++ b/forge-gui/res/cardsfolder/d/druids_deliverance.txt @@ -1,8 +1,8 @@ Name:Druid's Deliverance ManaCost:1 G Types:Instant -A:SP$ Effect | Cost$ 1 G | Name$ Druid's Deliverance Effect | StaticAbilities$ STPrevent | AILogic$ Fog | SubAbility$ DBCopy | SpellDescription$ Prevent all combat damage that would be dealt to you this turn. Populate. (Create a token that's a copy of a creature token you control.) -SVar:STPrevent:Mode$ PreventDamage | EffectZone$ Command | CombatDamage$ True | Target$ You | Description$ Prevent all combat damage that would be dealt to you this turn. +A:SP$ Effect | Cost$ 1 G | Name$ Druid's Deliverance Effect | ReplacementEffects$ RPrevent | AILogic$ Fog | SubAbility$ DBCopy | SpellDescription$ Prevent all combat damage that would be dealt to you this turn. Populate. (Create a token that's a copy of a creature token you control.) +SVar:RPrevent:Event$ DamageDone | Prevent$ True | IsCombat$ True | ActiveZones$ Command | ValidTarget$ You | Description$ Prevent all combat damage that would be dealt to you this turn. SVar:DBCopy:DB$ CopyPermanent | Choices$ Creature.token+YouCtrl | NumCopies$ 1 | Populate$ True DeckHints:Ability$Token SVar:Picture:http://www.wizards.com/global/images/magic/general/druids_deliverance.jpg From b5be110f0cc38598df60a48f07e479354de814b8 Mon Sep 17 00:00:00 2001 From: Hanmac Date: Fri, 30 Mar 2018 13:41:51 +0200 Subject: [PATCH 2/2] Replacement Effect instead of StaticDamage --- .../game/ability/effects/CleanUpEffect.java | 3 +++ .../java/forge/game/combat/CombatUtil.java | 20 +++++++++++++++---- .../forge/game/replacement/ReplaceDamage.java | 14 ++++++++++--- .../res/cardsfolder/a/al_abaras_carpet.txt | 4 ++-- .../res/cardsfolder/a/arachnogenesis.txt | 6 +++--- .../cardsfolder/a/avacyn_guardian_angel.txt | 10 ++++------ forge-gui/res/cardsfolder/b/blinding_fog.txt | 6 +++--- forge-gui/res/cardsfolder/b/bubble_matrix.txt | 2 +- forge-gui/res/cardsfolder/c/callous_giant.txt | 2 +- .../res/cardsfolder/c/chameleon_blur.txt | 4 ++-- .../res/cardsfolder/c/chromatic_armor.txt | 2 +- .../c/commencement_of_festivities.txt | 4 ++-- .../cardsfolder/c/consulate_surveillance.txt | 8 ++++---- forge-gui/res/cardsfolder/d/deep_wood.txt | 4 ++-- forge-gui/res/cardsfolder/d/defang.txt | 2 +- .../res/cardsfolder/d/defend_the_hearth.txt | 4 ++-- .../res/cardsfolder/d/delight_in_the_hunt.txt | 6 +++--- forge-gui/res/cardsfolder/d/divine_light.txt | 4 ++-- forge-gui/res/cardsfolder/d/dolmen_gate.txt | 2 +- .../res/cardsfolder/e/emmara_tandris.txt | 2 +- .../res/cardsfolder/e/enchanted_being.txt | 2 +- .../res/cardsfolder/e/encircling_fissure.txt | 6 +++--- forge-gui/res/cardsfolder/e/endure.txt | 4 ++-- forge-gui/res/cardsfolder/e/energy_field.txt | 2 +- forge-gui/res/cardsfolder/e/energy_storm.txt | 2 +- forge-gui/res/cardsfolder/e/ethereal_haze.txt | 4 ++-- .../cardsfolder/e/ethersworn_shieldmage.txt | 4 ++-- forge-gui/res/cardsfolder/f/forfend.txt | 4 ++-- .../cardsfolder/f/frontline_strategist.txt | 6 +++--- .../cardsfolder/g/gideons_intervention.txt | 4 ++-- forge-gui/res/cardsfolder/g/glacial_chasm.txt | 4 ++-- .../res/cardsfolder/g/goblin_furrier.txt | 2 +- .../res/cardsfolder/h/harmless_assault.txt | 4 ++-- forge-gui/res/cardsfolder/h/haze_frog.txt | 4 ++-- forge-gui/res/cardsfolder/h/heavy_fog.txt | 4 ++-- forge-gui/res/cardsfolder/h/hindervines.txt | 4 ++-- .../res/cardsfolder/i/indentured_oaf.txt | 2 +- forge-gui/res/cardsfolder/i/inner_sanctum.txt | 2 +- forge-gui/res/cardsfolder/i/inviolability.txt | 2 +- .../res/cardsfolder/l/light_of_sanction.txt | 2 +- .../res/cardsfolder/l/lithomancers_focus.txt | 6 ++---- forge-gui/res/cardsfolder/l/luminesce.txt | 4 ++-- .../res/cardsfolder/m/magebane_armor.txt | 2 +- forge-gui/res/cardsfolder/m/marble_priest.txt | 4 ++-- .../res/cardsfolder/m/mark_of_asylum.txt | 2 +- forge-gui/res/cardsfolder/m/moonmist.txt | 7 +++---- forge-gui/res/cardsfolder/m/mount_keralia.txt | 4 ++-- .../res/cardsfolder/m/mourners_shield.txt | 4 ++-- forge-gui/res/cardsfolder/m/muzzle.txt | 2 +- .../res/cardsfolder/p/personal_sanctuary.txt | 2 +- .../res/cardsfolder/p/prismatic_strands.txt | 4 ++-- .../res/cardsfolder/p/prismatic_ward.txt | 4 ++-- .../res/cardsfolder/p/protective_sphere.txt | 4 ++-- forge-gui/res/cardsfolder/r/radiant_kavu.txt | 4 ++-- .../cardsfolder/r/repel_the_abominable.txt | 4 ++-- forge-gui/res/cardsfolder/r/riot_control.txt | 4 ++-- forge-gui/res/cardsfolder/s/safe_passage.txt | 4 ++-- forge-gui/res/cardsfolder/s/scarecrow.txt | 4 ++-- .../res/cardsfolder/s/selfless_squire.txt | 4 ++-- .../res/cardsfolder/s/shieldmage_advocate.txt | 8 +++----- forge-gui/res/cardsfolder/s/sivvis_ruse.txt | 4 ++-- forge-gui/res/cardsfolder/s/snag.txt | 4 ++-- .../cardsfolder/s/solitary_confinement.txt | 2 +- .../res/cardsfolder/s/stonewise_fortifier.txt | 6 ++---- forge-gui/res/cardsfolder/t/talruum_piper.txt | 2 +- forge-gui/res/cardsfolder/t/tanglesap.txt | 4 ++-- .../res/cardsfolder/t/terrifying_presence.txt | 4 ++-- forge-gui/res/cardsfolder/v/vine_snare.txt | 4 ++-- .../res/cardsfolder/w/well_laid_plans.txt | 2 +- .../res/cardsfolder/w/winds_of_qal_sisma.txt | 8 ++++---- 70 files changed, 156 insertions(+), 142 deletions(-) diff --git a/forge-game/src/main/java/forge/game/ability/effects/CleanUpEffect.java b/forge-game/src/main/java/forge/game/ability/effects/CleanUpEffect.java index e1c1f4b8c22..1011d9293ee 100644 --- a/forge-game/src/main/java/forge/game/ability/effects/CleanUpEffect.java +++ b/forge-game/src/main/java/forge/game/ability/effects/CleanUpEffect.java @@ -54,5 +54,8 @@ public class CleanUpEffect extends SpellAbilityEffect { if (sa.hasParam("ClearChosenType")) { source.setChosenType(""); } + if (sa.hasParam("ClearChosenColor")) { + source.setChosenColors(null); + } } } diff --git a/forge-game/src/main/java/forge/game/combat/CombatUtil.java b/forge-game/src/main/java/forge/game/combat/CombatUtil.java index 91533392b28..ac16b73e584 100644 --- a/forge-game/src/main/java/forge/game/combat/CombatUtil.java +++ b/forge-game/src/main/java/forge/game/combat/CombatUtil.java @@ -775,8 +775,6 @@ public class CombatUtil { final CardCollection attackersWithLure = new CardCollection(); for (final Card attacker : attackers) { if (attacker.hasStartOfKeyword("All creatures able to block CARDNAME do so.") - || (attacker.hasStartOfKeyword("All Walls able to block CARDNAME do so.") && blocker.getType().hasSubtype("Wall")) - || (attacker.hasStartOfKeyword("All creatures with flying able to block CARDNAME do so.") && blocker.hasKeyword("Flying")) || (attacker.hasStartOfKeyword("CARDNAME must be blocked if able.") && combat.getBlockers(attacker).isEmpty())) { attackersWithLure.add(attacker); @@ -792,6 +790,14 @@ public class CombatUtil { break; } } + // MustBeBlockedByAll: + if (keyword.startsWith("MustBeBlockedByAll")) { + final String valid = keyword.split(":")[1]; + if (blocker.isValid(valid, null, null, null)) { + attackersWithLure.add(attacker); + break; + } + } } } } @@ -905,13 +911,19 @@ public class CombatUtil { break; } } + // MustBeBlockedByAll: + if (keyword.startsWith("MustBeBlockedByAll")) { + final String valid = keyword.split(":")[1]; + if (blocker.isValid(valid, null, null, null)) { + mustBeBlockedBy = true; + break; + } + } } // if the attacker has no lure effect, but the blocker can block another // attacker with lure, the blocker can't block the former if (!attacker.hasKeyword("All creatures able to block CARDNAME do so.") - && !(attacker.hasStartOfKeyword("All Walls able to block CARDNAME do so.") && blocker.getType().hasSubtype("Wall")) - && !(attacker.hasStartOfKeyword("All creatures with flying able to block CARDNAME do so.") && blocker.hasKeyword("Flying")) && !(attacker.hasKeyword("CARDNAME must be blocked if able.") && combat.getBlockers(attacker).isEmpty()) && !(blocker.getMustBlockCards() != null && blocker.getMustBlockCards().contains(attacker)) && !mustBeBlockedBy diff --git a/forge-game/src/main/java/forge/game/replacement/ReplaceDamage.java b/forge-game/src/main/java/forge/game/replacement/ReplaceDamage.java index 05cf878c177..9893d28bf63 100644 --- a/forge-game/src/main/java/forge/game/replacement/ReplaceDamage.java +++ b/forge-game/src/main/java/forge/game/replacement/ReplaceDamage.java @@ -53,6 +53,10 @@ public class ReplaceDamage extends ReplacementEffect { if (!(runParams.containsKey("Prevention") == (hasParam("PreventionEffect") || hasParam("Prevent")))) { return false; } + if (((Integer) runParams.get("DamageAmount")) == 0) { + // If no actual damage is dealt, there is nothing to replace + return false; + } if (hasParam("ValidSource")) { String validSource = getParam("ValidSource"); validSource = AbilityUtils.applyAbilityTextChangeEffects(validSource, this); @@ -83,9 +87,13 @@ public class ReplaceDamage extends ReplacementEffect { } } } - if (((Integer) runParams.get("DamageAmount")) == 0) { - // If no actual damage is dealt, there is nothing to replace - return false; + if (hasParam("RelativeToSource")) { + Card source = (Card) runParams.get("DamageSource"); + String validRelative = getParam("RelativeToSource"); + validRelative = AbilityUtils.applyAbilityTextChangeEffects(validRelative, this); + if (!matchesValid(runParams.get("DamageTarget"), validRelative.split(","), source)) { + return false; + } } if (hasParam("DamageAmount")) { String full = getParam("DamageAmount"); diff --git a/forge-gui/res/cardsfolder/a/al_abaras_carpet.txt b/forge-gui/res/cardsfolder/a/al_abaras_carpet.txt index 24c861dd1b5..57b2a579caf 100644 --- a/forge-gui/res/cardsfolder/a/al_abaras_carpet.txt +++ b/forge-gui/res/cardsfolder/a/al_abaras_carpet.txt @@ -1,8 +1,8 @@ Name:Al-abara's Carpet ManaCost:5 Types:Artifact -A:AB$ Effect | Cost$ 5 T | Name$ Al-abara's Carpet Effect | StaticAbilities$ STPrevent | SpellDescription$ Prevent all damage that would be dealt to you this turn by attacking creatures without flying. -SVar:STPrevent:Mode$ PreventDamage | EffectZone$ Command | Target$ You | Source$ Creature.attacking+withoutFlying | Description$ Prevent all damage that would be dealt to you this turn by attacking creatures without flying. +A:AB$ Effect | Cost$ 5 T | Name$ Al-abara's Carpet Effect | ReplacementEffects$ RPrevent | SpellDescription$ Prevent all damage that would be dealt to you this turn by attacking creatures without flying. +SVar:RPrevent:Event$ DamageDone | Prevent$ True | ActiveZones$ Command | ValidTarget$ Player | ValidSource$ Creature.attacking+withoutFlying | Description$ Prevent all damage that would be dealt to you this turn by attacking creatures without flying. SVar:RemAIDeck:True SVar:NonStackingEffect:True SVar:Picture:http://www.wizards.com/global/images/magic/general/al_abaras_carpet.jpg diff --git a/forge-gui/res/cardsfolder/a/arachnogenesis.txt b/forge-gui/res/cardsfolder/a/arachnogenesis.txt index 725578668af..7e355c4e722 100644 --- a/forge-gui/res/cardsfolder/a/arachnogenesis.txt +++ b/forge-gui/res/cardsfolder/a/arachnogenesis.txt @@ -2,8 +2,8 @@ Name:Arachnogenesis ManaCost:2 G Types:Instant A:SP$ Token | Cost$ 2 G | TokenAmount$ X | TokenName$ Spider | TokenTypes$ Creature,Spider | TokenOwner$ You | TokenColors$ Green | TokenPower$ 1 | TokenToughness$ 2 | TokenKeywords$ Reach | SubAbility$ DBCurseNonSpiders | References$ X | SpellDescription$ Create X 1/2 green Spider creature tokens with reach, where X is the number of creatures attacking you. Prevent all combat damage that would be dealt this turn by non-Spider creatures. | TokenImage$ g_1_2_spider_isd -SVar:DBCurseNonSpiders:DB$ Effect | Name$ Arachnogenesis Effect | StaticAbilities$ Curse -SVar:Curse:Mode$ PreventDamage | EffectZone$ Command | Source$ Creature.nonSpider | CombatDamage$ True | Description$ Prevent all combat damage that would be dealt this turn by non-Spider creatures. +SVar:DBCurseNonSpiders:DB$ Effect | Name$ Arachnogenesis Effect | ReplacementEffects$ Curse +SVar:Curse:Event$ DamageDone | Prevent$ True | IsCombat$ True | ActiveZones$ Command | ValidSource$ Creature.nonSpider | Description$ Prevent all combat damage that would be dealt this turn by non-Spider creatures. SVar:X:Count$Valid Creature.attackingYou SVar:Picture:http://www.wizards.com/global/images/magic/general/arachnogenesis.jpg -Oracle:Create X 1/2 green Spider creature tokens with reach, where X is the number of creatures attacking you. Prevent all combat damage that would be dealt this turn by non-Spider creatures. \ No newline at end of file +Oracle:Create X 1/2 green Spider creature tokens with reach, where X is the number of creatures attacking you. Prevent all combat damage that would be dealt this turn by non-Spider creatures. diff --git a/forge-gui/res/cardsfolder/a/avacyn_guardian_angel.txt b/forge-gui/res/cardsfolder/a/avacyn_guardian_angel.txt index 34b3e711ed2..f3ca08a95f0 100644 --- a/forge-gui/res/cardsfolder/a/avacyn_guardian_angel.txt +++ b/forge-gui/res/cardsfolder/a/avacyn_guardian_angel.txt @@ -5,13 +5,11 @@ PT:5/4 K:Flying K:Vigilance A:AB$ ChooseColor | Cost$ 1 W | Defined$ You | SubAbility$ DBEffect | SpellDescription$ Prevent all damage that would be dealt to another target creature this turn by sources of the color of your choice. -SVar:DBEffect:DB$ Effect | ValidTgts$ Creature.Other | TgtPrompt$ Select another target creature | Name$ Avacyn, Guardian Angel Effect 1 | StaticAbilities$ STPrevent | RememberObjects$ Targeted | Triggers$ OutOfSight | SVars$ ExileSelf -SVar:OutOfSight:Mode$ ChangesZone | TriggerZones$ Command | Origin$ Battlefield | Destination$ Any | ValidCard$ Card.IsRemembered | Execute$ ExileSelf | Static$ True -SVar:ExileSelf:DB$ ChangeZone | Defined$ Self | Origin$ Command | Destination$ Exile -SVar:STPrevent:Mode$ PreventDamage | EffectZone$ Command | Source$ Card.ChosenColor | Target$ Card.IsRemembered | Description$ Prevent all damage that would be dealt to another target creature this turn by sources of the color of your choice. +SVar:DBEffect:DB$ Effect | ValidTgts$ Creature.Other | TgtPrompt$ Select another target creature | Name$ Avacyn, Guardian Angel Effect 1 | ReplacementEffects$ RPreventCreature | RememberObjects$ Targeted | ForgetOnMoved$ Battlefield +SVar:RPreventCreature:Event$ DamageDone | Prevent$ True | ActiveZones$ Command | ValidTarget$ Card.IsRemembered | ValidSource$ Card.ChosenColor | Description$ Prevent all damage that would be dealt to another target creature this turn by sources of the color of your choice. A:AB$ ChooseColor | Cost$ 5 W W | Defined$ You | SubAbility$ DBEffect2 | SpellDescription$ Prevent all damage that would be dealt to target player this turn by sources of the color of your choice. -SVar:DBEffect2:DB$ Effect | ValidTgts$ Player | Name$ Avacyn, Guardian Angel Effect 2 | StaticAbilities$ STPrevent2 | AILogic$ Fog | RememberObjects$ Targeted -SVar:STPrevent2:Mode$ PreventDamage | EffectZone$ Command | Source$ Card.ChosenColor | Target$ Player.IsRemembered | Description$ Prevent all damage that would be dealt to target player this turn by sources of the color of your choice. +SVar:DBEffect2:DB$ Effect | ValidTgts$ Player | Name$ Avacyn, Guardian Angel Effect 2 | ReplacementEffects$ RPreventPlayer | AILogic$ Fog | RememberObjects$ Targeted +SVar:RPreventPlayer:Event$ DamageDone | Prevent$ True | ActiveZones$ Command | ValidTarget$ Player.IsRemembered | ValidSource$ Card.ChosenColor | Description$ Prevent all damage that would be dealt to target player this turn by sources of the color of your choice. SVar:RemAIDeck:True SVar:Picture:http://www.wizards.com/global/images/magic/general/avacyn_guardian_angel.jpg Oracle:Flying, vigilance\n{1}{W}: Prevent all damage that would be dealt to another target creature this turn by sources of the color of your choice.\n{5}{W}{W}: Prevent all damage that would be dealt to target player this turn by sources of the color of your choice. diff --git a/forge-gui/res/cardsfolder/b/blinding_fog.txt b/forge-gui/res/cardsfolder/b/blinding_fog.txt index 0860fd6cb7e..57c623f906d 100644 --- a/forge-gui/res/cardsfolder/b/blinding_fog.txt +++ b/forge-gui/res/cardsfolder/b/blinding_fog.txt @@ -1,9 +1,9 @@ Name:Blinding Fog ManaCost:2 G Types:Instant -A:SP$ Effect | Cost$ 2 G | Name$ Blinding Fog Effect | StaticAbilities$ STPrevent | SubAbility$ DBPumpAll | SpellDescription$ Prevent all damage that would be dealt to creatures this turn. Creatures you control gain hexproof until end of turn. (They can't be the targets of spells or abilities your opponents control.) -SVar:STPrevent:Mode$ PreventDamage | EffectZone$ Command | Target$ Creature | Description$ Prevent all damage that would be dealt to creatures this turn. +A:SP$ Effect | Cost$ 2 G | Name$ Blinding Fog Effect | ReplacementEffects$ RPrevent | SubAbility$ DBPumpAll | SpellDescription$ Prevent all damage that would be dealt to creatures this turn. Creatures you control gain hexproof until end of turn. (They can't be the targets of spells or abilities your opponents control.) +SVar:RPrevent:Event$ DamageDone | Prevent$ True | ActiveZones$ Command | ValidTarget$ Creature | Description$ Prevent all damage that would be dealt to creatures this turn. SVar:DBPumpAll:DB$ PumpAll | ValidCards$ Creature.YouCtrl | KW$ Hexproof SVar:RemAIDeck:True SVar:Picture:http://www.wizards.com/global/images/magic/general/blinding_fog.jpg -Oracle:Prevent all damage that would be dealt to creatures this turn. Creatures you control gain hexproof until end of turn. (They can't be the targets of spells or abilities your opponents control.) \ No newline at end of file +Oracle:Prevent all damage that would be dealt to creatures this turn. Creatures you control gain hexproof until end of turn. (They can't be the targets of spells or abilities your opponents control.) diff --git a/forge-gui/res/cardsfolder/b/bubble_matrix.txt b/forge-gui/res/cardsfolder/b/bubble_matrix.txt index 28d009cf01b..0a4d64fe767 100644 --- a/forge-gui/res/cardsfolder/b/bubble_matrix.txt +++ b/forge-gui/res/cardsfolder/b/bubble_matrix.txt @@ -1,7 +1,7 @@ Name:Bubble Matrix ManaCost:4 Types:Artifact -S:Mode$ PreventDamage | Target$ Creature | Description$ Prevent all damage that would be dealt to creatures. +R:Event$ DamageDone | Prevent$ True | ValidTarget$ Creature | Description$ Prevent all damage that would be dealt to creatures. SVar:NonStackingEffect:True SVar:RemRandomDeck:True SVar:Picture:http://www.wizards.com/global/images/magic/general/bubble_matrix.jpg diff --git a/forge-gui/res/cardsfolder/c/callous_giant.txt b/forge-gui/res/cardsfolder/c/callous_giant.txt index ba05863baf4..793b5278c28 100644 --- a/forge-gui/res/cardsfolder/c/callous_giant.txt +++ b/forge-gui/res/cardsfolder/c/callous_giant.txt @@ -2,6 +2,6 @@ Name:Callous Giant ManaCost:4 R R Types:Creature Giant PT:4/4 -S:Mode$ PreventDamage | Target$ Card.Self | MaxDamage$ 3 | Description$ If a source would deal 3 or less damage to Callous Giant, prevent that damage. +R:Event$ DamageDone | Prevent$ True | ValidTarget$ Card.Self | DamageAmount$ LE3 | Description$ If a source would deal 3 or less damage to CARDNAME, prevent that damage. SVar:Picture:http://www.wizards.com/global/images/magic/general/callous_giant.jpg Oracle:If a source would deal 3 or less damage to Callous Giant, prevent that damage. diff --git a/forge-gui/res/cardsfolder/c/chameleon_blur.txt b/forge-gui/res/cardsfolder/c/chameleon_blur.txt index b62af4fa1e8..b307085f317 100644 --- a/forge-gui/res/cardsfolder/c/chameleon_blur.txt +++ b/forge-gui/res/cardsfolder/c/chameleon_blur.txt @@ -1,7 +1,7 @@ Name:Chameleon Blur ManaCost:3 G Types:Instant -A:SP$ Effect | Cost$ 3 G | Name$ Chameleon Blur Effect | StaticAbilities$ STPrevent | AILogic$ Fog | SpellDescription$ Prevent all damage that creatures would deal to players this turn. -SVar:STPrevent:Mode$ PreventDamage | EffectZone$ Command | Source$ Creature | Target$ Player | Description$ Prevent all damage that creatures would deal to players this turn. +A:SP$ Effect | Cost$ 3 G | Name$ Chameleon Blur Effect | ReplacementEffects$ RPrevent | AILogic$ Fog | SpellDescription$ Prevent all damage that creatures would deal to players this turn. +SVar:RPrevent:Event$ DamageDone | Prevent$ True | ActiveZones$ Command | ValidSource$ Creature | ValidTarget$ Player | Description$ Prevent all damage that creatures would deal to players this turn. SVar:Picture:http://www.wizards.com/global/images/magic/general/chameleon_blur.jpg Oracle:Prevent all damage that creatures would deal to players this turn. diff --git a/forge-gui/res/cardsfolder/c/chromatic_armor.txt b/forge-gui/res/cardsfolder/c/chromatic_armor.txt index 5b005ccc9b5..67ec28bd6f8 100644 --- a/forge-gui/res/cardsfolder/c/chromatic_armor.txt +++ b/forge-gui/res/cardsfolder/c/chromatic_armor.txt @@ -6,7 +6,7 @@ A:SP$ Attach | Cost$ 1 W U | ValidTgts$ Creature | AILogic$ Pump K:ETBReplacement:Other:ChooseColor SVar:ChooseColor:DB$ ChooseColor | Defined$ You | AILogic$ MostProminentInHumanDeck | SpellDescription$ As CARDNAME enters the battlefield, choose a color. K:etbCounter:SLEIGHT:1 -S:Mode$ PreventDamage | Target$ Creature.EnchantedBy | Source$ Card.ChosenColor | Description$ Prevent all damage that would be dealt to enchanted creature by sources of the last chosen color. +R:Event$ DamageDone | Prevent$ True | ValidTarget$ Creature.EnchantedBy | ValidSource$ Card.ChosenColor | Description$ Prevent all damage that would be dealt to enchanted creature by sources of the chosen color. A:AB$ PutCounter | Cost$ X | Defined$ Self | CounterType$ SLEIGHT | CounterNum$ 1 | SubAbility$ ChooseColor | References$ X | SpellDescription$ Put a sleight counter on CARDNAME and choose a color. X is the number of sleight counters on CARDNAME. SVar:X:Count$CardCounters.SLEIGHT SVar:RemAIDeck:True diff --git a/forge-gui/res/cardsfolder/c/commencement_of_festivities.txt b/forge-gui/res/cardsfolder/c/commencement_of_festivities.txt index cc91e03ab66..5f52e0672a5 100644 --- a/forge-gui/res/cardsfolder/c/commencement_of_festivities.txt +++ b/forge-gui/res/cardsfolder/c/commencement_of_festivities.txt @@ -1,7 +1,7 @@ Name:Commencement of Festivities ManaCost:1 G Types:Instant -A:SP$ Effect | Cost$ 1 G | Name$ Commencement of Festivities Effect | StaticAbilities$ STPrevent | AILogic$ Fog | SpellDescription$ Prevent all combat damage that would be dealt to players this turn. -SVar:STPrevent:Mode$ PreventDamage | EffectZone$ Command | CombatDamage$ True | Target$ Player | Description$ Prevent all combat damage that would be dealt to players this turn. +A:SP$ Effect | Cost$ 1 G | Name$ Commencement of Festivities Effect | ReplacementEffects$ RPrevent | AILogic$ Fog | SpellDescription$ Prevent all combat damage that would be dealt to players this turn. +SVar:RPrevent:Event$ DamageDone | Prevent$ True | IsCombat$ True | ActiveZones$ Command | ValidTarget$ Player | Description$ Prevent all combat damage that would be dealt to players this turn. SVar:Picture:http://www.wizards.com/global/images/magic/general/commencement_of_festivities.jpg Oracle:Prevent all combat damage that would be dealt to players this turn. diff --git a/forge-gui/res/cardsfolder/c/consulate_surveillance.txt b/forge-gui/res/cardsfolder/c/consulate_surveillance.txt index 2184792c40b..a0d5958bd18 100644 --- a/forge-gui/res/cardsfolder/c/consulate_surveillance.txt +++ b/forge-gui/res/cardsfolder/c/consulate_surveillance.txt @@ -3,9 +3,9 @@ ManaCost:3 W Types:Enchantment T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigEnergy | TriggerDescription$ When CARDNAME enters the battlefield, you get {E}{E}{E}{E} (four energy counters). SVar:TrigEnergy:DB$ PutCounter | Defined$ You | CounterType$ ENERGY | CounterNum$ 4 -A:AB$ ChooseSource | Cost$ PayEnergy<2> | Choices$ Card | ChoiceTitle$ Choose a source | RememberChosen$ True | AILogic$ NeedsPrevention | SubAbility$ DBEffect | SpellDescription$ Prevent all damage that would be dealt to you this turn by a source of your choice. -SVar:DBEffect:DB$ Effect | StaticAbilities$ PreventFromSource | References$ PreventFromSource | RememberObjects$ Remembered | ConditionDefined$ Remembered | ConditionPresent$ Card | ConditionCompare$ GE1 | SubAbility$ DBCleanup -SVar:PreventFromSource:Mode$ PreventDamage | EffectZone$ Command | Target$ You | Source$ Card.IsRemembered | Description$ Prevent all damage that would be dealt to you this turn by a source of your choice. -SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True +A:AB$ ChooseSource | Cost$ PayEnergy<2> | Choices$ Card,Emblem | ChoiceTitle$ Choose a source | RememberChosen$ True | AILogic$ NeedsPrevention | SubAbility$ DBEffect | SpellDescription$ Prevent all damage that would be dealt to you this turn by a source of your choice. +SVar:DBEffect:DB$ Effect | ReplacementEffects$ RPrevent | RememberObjects$ Remembered | ConditionDefined$ Remembered | ConditionPresent$ Card,Emblem | ConditionCompare$ GE1 | SubAbility$ DBCleanup +SVar:RPrevent:Event$ DamageDone | Prevent$ True | ActiveZones$ Command | ValidTarget$ You | ValidSource$ Card.IsRemembered,Emblem.IsRemembered | Description$ Prevent all damage that would be dealt to you this turn by a source of your choice. +SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True | ClearChosenCard$ True SVar:Picture:http://www.wizards.com/global/images/magic/general/consulate_surveillance.jpg Oracle:When Consulate Surveillance enters the battlefield, you get {E}{E}{E}{E} (four energy counters).\nPay {E}{E}: Prevent all damage that would be dealt to you this turn by a source of your choice. diff --git a/forge-gui/res/cardsfolder/d/deep_wood.txt b/forge-gui/res/cardsfolder/d/deep_wood.txt index d03b4aec93f..05c3d575146 100644 --- a/forge-gui/res/cardsfolder/d/deep_wood.txt +++ b/forge-gui/res/cardsfolder/d/deep_wood.txt @@ -1,7 +1,7 @@ Name:Deep Wood ManaCost:1 G Types:Instant -A:SP$ Effect | Cost$ 1 G | Name$ Deep Wood Effect | StaticAbilities$ STPrevent | AILogic$ Fog | OpponentTurn$ True | ActivationPhases$ Declare Attackers | SpellDescription$ Cast CARDNAME only during the declare attackers step and only if you've been attacked this step. Prevent all damage that would be dealt to you this turn by attacking creatures. -SVar:STPrevent:Mode$ PreventDamage | EffectZone$ Command | Source$ Creature.attacking | Target$ You | Description$ Prevent all damage that would be dealt to you this turn by attacking creatures. +A:SP$ Effect | Cost$ 1 G | Name$ Deep Wood Effect | ReplacementEffects$ RPrevent | AILogic$ Fog | OpponentTurn$ True | ActivationPhases$ Declare Attackers | SpellDescription$ Cast CARDNAME only during the declare attackers step and only if you've been attacked this step. Prevent all damage that would be dealt to you this turn by attacking creatures. +SVar:RPrevent:Event$ DamageDone | Prevent$ True | ActiveZones$ Command | ValidTarget$ You | ValidSource$ Creature.attacking | Description$ Prevent all damage that would be dealt to you this turn by attacking creatures. SVar:Picture:http://www.wizards.com/global/images/magic/general/deep_wood.jpg Oracle:Cast Deep Wood only during the declare attackers step and only if you've been attacked this step.\nPrevent all damage that would be dealt to you this turn by attacking creatures. diff --git a/forge-gui/res/cardsfolder/d/defang.txt b/forge-gui/res/cardsfolder/d/defang.txt index ceaa8991276..40cb83c4a52 100644 --- a/forge-gui/res/cardsfolder/d/defang.txt +++ b/forge-gui/res/cardsfolder/d/defang.txt @@ -3,7 +3,7 @@ ManaCost:1 W Types:Enchantment Aura K:Enchant creature A:SP$ Attach | Cost$ 1 W | ValidTgts$ Creature | AILogic$ Curse -S:Mode$ PreventDamage | Source$ Creature.EnchantedBy | Description$ Prevent all damage that would be dealt by enchanted creature. +R:Event$ DamageDone | Prevent$ True | ValidSource$ Creature.EnchantedBy | Description$ Prevent all damage that would be dealt by enchanted creature. SVar:NonStackingAttachEffect:True SVar:Picture:http://www.wizards.com/global/images/magic/general/defang.jpg Oracle:Enchant creature\nPrevent all damage that would be dealt by enchanted creature. diff --git a/forge-gui/res/cardsfolder/d/defend_the_hearth.txt b/forge-gui/res/cardsfolder/d/defend_the_hearth.txt index 52c980379a4..6e149567fa1 100644 --- a/forge-gui/res/cardsfolder/d/defend_the_hearth.txt +++ b/forge-gui/res/cardsfolder/d/defend_the_hearth.txt @@ -1,7 +1,7 @@ Name:Defend the Hearth ManaCost:1 G Types:Instant -A:SP$ Effect | Cost$ 1 G | Name$ Defend the Hearth Effect | StaticAbilities$ STPrevent | AILogic$ Fog | SpellDescription$ Prevent all combat damage that would be dealt to players this turn. -SVar:STPrevent:Mode$ PreventDamage | EffectZone$ Command | CombatDamage$ True | Target$ Player | Description$ Prevent all combat damage that would be dealt to players this turn. +A:SP$ Effect | Cost$ 1 G | Name$ Defend the Hearth Effect | ReplacementEffects$ RPrevent | AILogic$ Fog | SpellDescription$ Prevent all combat damage that would be dealt to players this turn. +SVar:RPrevent:Event$ DamageDone | Prevent$ True | IsCombat$ True | ActiveZones$ Command | ValidTarget$ Player | Description$ Prevent all combat damage that would be dealt to players this turn. SVar:Picture:http://www.wizards.com/global/images/magic/general/defend_the_hearth.jpg Oracle:Prevent all combat damage that would be dealt to players this turn. diff --git a/forge-gui/res/cardsfolder/d/delight_in_the_hunt.txt b/forge-gui/res/cardsfolder/d/delight_in_the_hunt.txt index 9ed2d289574..0993ab88255 100644 --- a/forge-gui/res/cardsfolder/d/delight_in_the_hunt.txt +++ b/forge-gui/res/cardsfolder/d/delight_in_the_hunt.txt @@ -3,7 +3,7 @@ ManaCost:no cost Types:Scheme T:Mode$ SetInMotion | ValidCard$ Card.Self | Execute$ DBToken | TriggerZones$ Command | TriggerDescription$ When you set this scheme in motion, create a 3/3 black Horror creature token and prevent all damage that would be dealt to creatures you control this turn. SVar:DBToken:DB$ Token | TokenAmount$ 1 | TokenName$ Horror | TokenTypes$ Creature,Horror | TokenOwner$ You | TokenColors$ Black | TokenPower$ 3 | TokenToughness$ 3 | SubAbility$ DBPrevent -SVar:DBPrevent:DB$ Effect | Name$ Delight in the Hunt Effect | StaticAbilities$ STPrevent -SVar:STPrevent:Mode$ PreventDamage | EffectZone$ Command | Target$ Creature.YouCtrl | Description$ Prevent all damage that would be dealt to creatures you control this turn. +SVar:DBPrevent:DB$ Effect | Name$ Delight in the Hunt Effect | ReplacementEffects$ RPrevent +SVar:RPrevent:Event$ DamageDone | Prevent$ True | | ActiveZones$ Command | ValidTarget$ Creature.YouCtrl | Description$ Prevent all damage that would be dealt to creatures you control this turn. SVar:Picture:https://downloads.cardforge.org/images/cards/E01/Delight in the Hunt.full.jpg -Oracle:When you set this scheme in motion, create a 3/3 black Horror creature token and prevent all damage that would be dealt to creatures you control this turn. \ No newline at end of file +Oracle:When you set this scheme in motion, create a 3/3 black Horror creature token and prevent all damage that would be dealt to creatures you control this turn. diff --git a/forge-gui/res/cardsfolder/d/divine_light.txt b/forge-gui/res/cardsfolder/d/divine_light.txt index e7b53781e33..e951fcf527a 100644 --- a/forge-gui/res/cardsfolder/d/divine_light.txt +++ b/forge-gui/res/cardsfolder/d/divine_light.txt @@ -1,8 +1,8 @@ Name:Divine Light ManaCost:W Types:Sorcery -A:SP$ Effect | Cost$ W | Name$ Divine Light Effect | StaticAbilities$ STPrevent | SpellDescription$ Prevent all damage that would be dealt this turn to creatures you control. -SVar:STPrevent:Mode$ PreventDamage | EffectZone$ Command | Target$ Creature.YouCtrl | Description$ Prevent all damage that would be dealt this turn to creatures you control. +A:SP$ Effect | Cost$ W | Name$ Divine Light Effect | ReplacementEffects$ RPrevent | SpellDescription$ Prevent all damage that would be dealt this turn to creatures you control. +SVar:RPrevent:Event$ DamageDone | Prevent$ True | ActiveZones$ Command | ValidTarget$ Creature.YouCtrl | Description$ Prevent all damage that would be dealt this turn to creatures you control. SVar:RemAIDeck:True SVar:Picture:http://www.wizards.com/global/images/magic/general/divine_light.jpg Oracle:Prevent all damage that would be dealt this turn to creatures you control. diff --git a/forge-gui/res/cardsfolder/d/dolmen_gate.txt b/forge-gui/res/cardsfolder/d/dolmen_gate.txt index 2a1cfd322c5..e741cb16199 100644 --- a/forge-gui/res/cardsfolder/d/dolmen_gate.txt +++ b/forge-gui/res/cardsfolder/d/dolmen_gate.txt @@ -1,7 +1,7 @@ Name:Dolmen Gate ManaCost:2 Types:Artifact -S:Mode$ PreventDamage | Target$ Creature.attacking+YouCtrl | CombatDamage$ True | Description$ Prevent all combat damage that would be dealt to attacking creatures you control. +R:Event$ DamageDone | Prevent$ True | ValidTarget$ Creature.attacking+YouCtrl | IsCombat$ True | Description$ Prevent all combat damage that would be dealt to attacking creatures you control. SVar:NonStackingEffect:True SVar:Picture:http://www.wizards.com/global/images/magic/general/dolmen_gate.jpg Oracle:Prevent all combat damage that would be dealt to attacking creatures you control. diff --git a/forge-gui/res/cardsfolder/e/emmara_tandris.txt b/forge-gui/res/cardsfolder/e/emmara_tandris.txt index 8fd24e50214..5c9d15ee3b0 100644 --- a/forge-gui/res/cardsfolder/e/emmara_tandris.txt +++ b/forge-gui/res/cardsfolder/e/emmara_tandris.txt @@ -2,7 +2,7 @@ Name:Emmara Tandris ManaCost:5 G W Types:Legendary Creature Elf Shaman PT:5/7 -S:Mode$ PreventDamage | Target$ Creature.token+YouCtrl | Description$ Prevent all damage that would be dealt to creature tokens you control. +R:Event$ DamageDone | Prevent$ True | ValidTarget$ Creature.token+YouCtrl | Description$ Prevent all damage that would be dealt to creature tokens you control. SVar:PlayMain1:TRUE DeckHints:Ability$Token SVar:Picture:http://www.wizards.com/global/images/magic/general/emmara_tandris.jpg diff --git a/forge-gui/res/cardsfolder/e/enchanted_being.txt b/forge-gui/res/cardsfolder/e/enchanted_being.txt index c18c9990f49..0b7b90053e6 100644 --- a/forge-gui/res/cardsfolder/e/enchanted_being.txt +++ b/forge-gui/res/cardsfolder/e/enchanted_being.txt @@ -2,6 +2,6 @@ Name:Enchanted Being ManaCost:1 W W Types:Creature Human PT:2/2 -S:Mode$ PreventDamage | Source$ Creature.enchanted | Target$ Card.Self | CombatDamage$ True | Description$ Prevent all combat damage that would be dealt to CARDNAME by enchanted creatures. +R:Event$ DamageDone | Prevent$ True | ValidTarget$ Card.Self | ValidSource$ Creature.enchanted | IsCombat$ True | Description$ Prevent all combat damage that would be dealt to CARDNAME by enchanted creatures. SVar:Picture:http://www.wizards.com/global/images/magic/general/enchanted_being.jpg Oracle:Prevent all combat damage that would be dealt to Enchanted Being by enchanted creatures. diff --git a/forge-gui/res/cardsfolder/e/encircling_fissure.txt b/forge-gui/res/cardsfolder/e/encircling_fissure.txt index 3d1607d3eb4..05d599c41ce 100644 --- a/forge-gui/res/cardsfolder/e/encircling_fissure.txt +++ b/forge-gui/res/cardsfolder/e/encircling_fissure.txt @@ -2,7 +2,7 @@ Name:Encircling Fissure ManaCost:2 W Types:Instant K:Awaken:2:4 W -A:SP$ Effect | Cost$ 2 W | ValidTgts$ Opponent | TgtPrompt$ Select target opponent | StaticAbilities$ STPrevent | AILogic$ Fog | SpellDescription$ Prevent all combat damage that would be dealt this turn by creatures target opponent controls. -SVar:STPrevent:Mode$ PreventDamage | EffectZone$ Command | CombatDamage$ True | Source$ Creature.OppCtrl | Description$ Prevent all combat damage that would be dealt this turn by creatures target opponent controls. +A:SP$ Effect | Cost$ 2 W | ValidTgts$ Opponent | TgtPrompt$ Select target opponent | RememberObjects$ Targeted | ReplacementEffects$ RPrevent | AILogic$ Fog | SpellDescription$ Prevent all combat damage that would be dealt this turn by creatures target opponent controls. +SVar:RPrevent:Event$ DamageDone | Prevent$ True | IsCombat$ True | ActiveZones$ Command | ValidSource$ Creature.ControlledBy Player.IsRemembered | Description$ Prevent all combat damage that would be dealt this turn by creatures target opponent controls. SVar:Picture:http://www.wizards.com/global/images/magic/general/encircling_fissure.jpg -Oracle:Prevent all combat damage that would be dealt this turn by creatures target opponent controls.\nAwaken 2—{4}{W} (If you cast this spell for {4}{W}, also put two +1/+1 counters on target land you control and it becomes a 0/0 Elemental creature with haste. It's still a land.) \ No newline at end of file +Oracle:Prevent all combat damage that would be dealt this turn by creatures target opponent controls.\nAwaken 2—{4}{W} (If you cast this spell for {4}{W}, also put two +1/+1 counters on target land you control and it becomes a 0/0 Elemental creature with haste. It's still a land.) diff --git a/forge-gui/res/cardsfolder/e/endure.txt b/forge-gui/res/cardsfolder/e/endure.txt index c20852d53fc..411ee639a80 100644 --- a/forge-gui/res/cardsfolder/e/endure.txt +++ b/forge-gui/res/cardsfolder/e/endure.txt @@ -1,8 +1,8 @@ Name:Endure ManaCost:3 W W Types:Instant -A:SP$ Effect | Cost$ 3 W W | Name$ Endure Effect | StaticAbilities$ STPrevent | AILogic$ Fog | SpellDescription$ Prevent all damage that would be dealt to you and permanents you control this turn. -SVar:STPrevent:Mode$ PreventDamage | EffectZone$ Command | Target$ You,Permanent.YouCtrl | Description$ Prevent all damage that would be dealt to you and permanents you control this turn. +A:SP$ Effect | Cost$ 3 W W | Name$ Endure Effect | ReplacementEffects$ RPrevent | AILogic$ Fog | SpellDescription$ Prevent all damage that would be dealt to you and permanents you control this turn. +SVar:RPrevent:Event$ DamageDone | Prevent$ True | ActiveZones$ Command | ValidTarget$ You,Permanent.YouCtrl | Description$ Prevent all damage that would be dealt to you and permanents you control this turn. SVar:RemAIDeck:True SVar:Picture:http://www.wizards.com/global/images/magic/general/endure.jpg Oracle:Prevent all damage that would be dealt to you and permanents you control this turn. diff --git a/forge-gui/res/cardsfolder/e/energy_field.txt b/forge-gui/res/cardsfolder/e/energy_field.txt index 38668bbeb4d..ac87c560a07 100644 --- a/forge-gui/res/cardsfolder/e/energy_field.txt +++ b/forge-gui/res/cardsfolder/e/energy_field.txt @@ -3,7 +3,7 @@ ManaCost:1 U Types:Enchantment T:Mode$ ChangesZone | Origin$ Any | Destination$ Graveyard | ValidCard$ Card.nonToken+YouOwn+Other | Execute$ TrigSac | TriggerZones$ Battlefield | TriggerDescription$ When a card is put into your graveyard from anywhere, sacrifice CARDNAME. SVar:TrigSac:DB$ Sacrifice | Defined$ Self -S:Mode$ PreventDamage | Target$ You | Source$ Card.YouDontCtrl | Description$ Prevent all damage that would be dealt to you by sources you don't control. +R:Event$ DamageDone | Prevent$ True | ValidTarget$ You | ValidSource$ Card.YouDontCtrl,Emblem.YouDontCtrl | Description$ Prevent all damage that would be dealt to you by sources you don't control. SVar:NonStackingEffect:True #NOTE: The AI will not play around this effect, so it's only good in properly designed decks that circumvent the necessity to worry about the detrimental effect. SVar:RemRandomDeck:True diff --git a/forge-gui/res/cardsfolder/e/energy_storm.txt b/forge-gui/res/cardsfolder/e/energy_storm.txt index 16fccb33782..a3f62db8964 100644 --- a/forge-gui/res/cardsfolder/e/energy_storm.txt +++ b/forge-gui/res/cardsfolder/e/energy_storm.txt @@ -3,7 +3,7 @@ ManaCost:1 W Types:Enchantment K:Cumulative upkeep:1 S:Mode$ Continuous | Affected$ Creature.withFlying | AddHiddenKeyword$ CARDNAME doesn't untap during your untap step. | Description$ Creatures with flying don't untap during their controllers' untap steps. -S:Mode$ PreventDamage | Source$ Instant,Sorcery | Description$ Prevent all damage that would be dealt by instant and sorcery spells. +R:Event$ DamageDone | Prevent$ True | ValidSource$ Instant,Sorcery | Description$ Prevent all damage that would be dealt by instant and sorcery spells. SVar:RemRandomDeck:True SVar:NonStackingEffect:True SVar:Picture:http://www.wizards.com/global/images/magic/general/energy_storm.jpg diff --git a/forge-gui/res/cardsfolder/e/ethereal_haze.txt b/forge-gui/res/cardsfolder/e/ethereal_haze.txt index a38c86c7de2..c1137ba5100 100644 --- a/forge-gui/res/cardsfolder/e/ethereal_haze.txt +++ b/forge-gui/res/cardsfolder/e/ethereal_haze.txt @@ -1,7 +1,7 @@ Name:Ethereal Haze ManaCost:W Types:Instant Arcane -A:SP$ Effect | Cost$ W | Name$ Ethereal Haze Effect | StaticAbilities$ STPrevent | AILogic$ Fog | SpellDescription$ Prevent all damage that would be dealt by creatures this turn. -SVar:STPrevent:Mode$ PreventDamage | EffectZone$ Command | Source$ Creature | Description$ Prevent all damage that would be dealt by creatures this turn. +A:SP$ Effect | Cost$ W | Name$ Ethereal Haze Effect | ReplacementEffects$ RPrevent | AILogic$ Fog | SpellDescription$ Prevent all damage that would be dealt by creatures this turn. +SVar:RPrevent:Event$ DamageDone | Prevent$ True | ActiveZones$ Command | ValidSource$ Creature | Description$ Prevent all damage that would be dealt by creatures this turn. SVar:Picture:http://www.wizards.com/global/images/magic/general/ethereal_haze.jpg Oracle:Prevent all damage that would be dealt by creatures this turn. diff --git a/forge-gui/res/cardsfolder/e/ethersworn_shieldmage.txt b/forge-gui/res/cardsfolder/e/ethersworn_shieldmage.txt index fc8a564074e..854e02a0860 100644 --- a/forge-gui/res/cardsfolder/e/ethersworn_shieldmage.txt +++ b/forge-gui/res/cardsfolder/e/ethersworn_shieldmage.txt @@ -4,8 +4,8 @@ Types:Artifact Creature Vedalken Wizard PT:2/2 K:Flash T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigEffect | TriggerDescription$ When CARDNAME enters the battlefield, prevent all damage that would be dealt to artifact creatures this turn. -SVar:TrigEffect:DB$ Effect | Name$ Ethersworn Shieldmage Effect | StaticAbilities$ STPrevent | SpellDescription$ Prevent all damage that would be dealt to artifact creatures this turn. -SVar:STPrevent:Mode$ PreventDamage | EffectZone$ Command | Target$ Creature.Artifact | Description$ Prevent all damage that would be dealt to artifact creatures this turn. +SVar:TrigEffect:DB$ Effect | Name$ Ethersworn Shieldmage Effect | ReplacementEffects$ PreventArtifact | SpellDescription$ Prevent all damage that would be dealt to artifact creatures this turn. +SVar:PreventArtifact:Event$ DamageDone | Prevent$ True | ActiveZones$ Command | ValidTarget$ Creature.Artifact | Description$ Prevent all damage that would be dealt to artifact creatures this turn. SVar:AmbushAI:True SVar:Picture:http://www.wizards.com/global/images/magic/general/ethersworn_shieldmage.jpg Oracle:Flash\nWhen Ethersworn Shieldmage enters the battlefield, prevent all damage that would be dealt to artifact creatures this turn. diff --git a/forge-gui/res/cardsfolder/f/forfend.txt b/forge-gui/res/cardsfolder/f/forfend.txt index 107ac4ce6d3..28b1f823709 100644 --- a/forge-gui/res/cardsfolder/f/forfend.txt +++ b/forge-gui/res/cardsfolder/f/forfend.txt @@ -1,8 +1,8 @@ Name:Forfend ManaCost:1 W Types:Instant -A:SP$ Effect | Cost$ 1 W | Name$ Forfend Effect | StaticAbilities$ STPrevent | SpellDescription$ Prevent all damage that would be dealt to creatures this turn. -SVar:STPrevent:Mode$ PreventDamage | EffectZone$ Command | Target$ Creature | Description$ Prevent all damage that would be dealt to creatures this turn. +A:SP$ Effect | Cost$ 1 W | Name$ Forfend Effect | ReplacementEffects$ RPrevent | SpellDescription$ Prevent all damage that would be dealt to creatures this turn. +SVar:RPrevent:Event$ DamageDone | Prevent$ True | ActiveZones$ Command | ValidTarget$ Creature | Description$ Prevent all damage that would be dealt to creatures this turn. SVar:RemAIDeck:True SVar:Picture:http://www.wizards.com/global/images/magic/general/forfend.jpg Oracle:Prevent all damage that would be dealt to creatures this turn. diff --git a/forge-gui/res/cardsfolder/f/frontline_strategist.txt b/forge-gui/res/cardsfolder/f/frontline_strategist.txt index 6469b2eb760..21a526099ce 100644 --- a/forge-gui/res/cardsfolder/f/frontline_strategist.txt +++ b/forge-gui/res/cardsfolder/f/frontline_strategist.txt @@ -4,8 +4,8 @@ Types:Creature Human Soldier PT:1/1 K:Morph:W T:Mode$ TurnFaceUp | ValidCard$ Card.Self | Execute$ TrigCurseNonSoldiers | TriggerZones$ Battlefield | TriggerDescription$ When CARDNAME is turned face up, prevent all combat damage non-Soldier creatures would deal this turn. -SVar:TrigCurseNonSoldiers:DB$ Effect | Name$ Frontline Strategist Effect | StaticAbilities$ Curse -SVar:Curse:Mode$ PreventDamage | EffectZone$ Command | Source$ Creature.nonSoldier | CombatDamage$ True | Description$ Prevent all combat damage non-Soldier creatures would deal this turn. +SVar:TrigCurseNonSoldiers:DB$ Effect | Name$ Frontline Strategist Effect | ReplacementEffects$ RPrevent +SVar:RPrevent:Event$ DamageDone | Prevent$ True | IsCombat$ True | ActiveZones$ Command | ValidSource$ Creature.nonSoldier | Description$ Prevent all combat damage non-Soldier creatures would deal this turn. SVar:RemRandomDeck:True SVar:Picture:http://www.wizards.com/global/images/magic/general/frontline_strategist.jpg -Oracle:Morph {W} (You may cast this card face down as a 2/2 creature for {3}. Turn it face up any time for its morph cost.)\nWhen Frontline Strategist is turned face up, prevent all combat damage non-Soldier creatures would deal this turn. \ No newline at end of file +Oracle:Morph {W} (You may cast this card face down as a 2/2 creature for {3}. Turn it face up any time for its morph cost.)\nWhen Frontline Strategist is turned face up, prevent all combat damage non-Soldier creatures would deal this turn. diff --git a/forge-gui/res/cardsfolder/g/gideons_intervention.txt b/forge-gui/res/cardsfolder/g/gideons_intervention.txt index 8ede64db382..3701ebb1c2a 100644 --- a/forge-gui/res/cardsfolder/g/gideons_intervention.txt +++ b/forge-gui/res/cardsfolder/g/gideons_intervention.txt @@ -4,7 +4,7 @@ Types:Enchantment K:ETBReplacement:Other:DBNameCard SVar:DBNameCard:DB$ NameCard | Defined$ You | SpellDescription$ As CARDNAME enters the battlefield, name a card. S:Mode$ CantBeCast | ValidCard$ Card.NamedCard+nonLand | Caster$ Opponent | Description$ Your opponents can't cast spells with the chosen name. -S:Mode$ PreventDamage | Target$ You,Permanent.YouCtrl | Source$ Card.NamedCard | Description$ Prevent all damage that would be dealt to you and permanents you control by sources with the chosen name. +R:Event$ DamageDone | Prevent$ True | ValidTarget$ You,Permanent.YouCtrl | ValidSource$ Card.NamedCard | Description$ Prevent all damage that would be dealt to you and permanents you control by sources with the chosen name. SVar:RemRandomDeck:True SVar:Picture:http://www.wizards.com/global/images/magic/general/gideons_intervention.jpg -Oracle:As Gideon's Intervention enters the battlefield, choose a card name.\nYour opponents can't cast spells with the chosen name.\nPrevent all damage that would be dealt to you and permanents you control by sources with the chosen name. \ No newline at end of file +Oracle:As Gideon's Intervention enters the battlefield, choose a card name.\nYour opponents can't cast spells with the chosen name.\nPrevent all damage that would be dealt to you and permanents you control by sources with the chosen name. diff --git a/forge-gui/res/cardsfolder/g/glacial_chasm.txt b/forge-gui/res/cardsfolder/g/glacial_chasm.txt index 46c9d478fe3..d426f05f2a1 100644 --- a/forge-gui/res/cardsfolder/g/glacial_chasm.txt +++ b/forge-gui/res/cardsfolder/g/glacial_chasm.txt @@ -4,8 +4,8 @@ Types:Land K:Cumulative upkeep:PayLife<2>:Pay 2 life. T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigSac | TriggerDescription$ When CARDNAME enters the battlefield, sacrifice a land. SVar:TrigSac:DB$Sacrifice | SacValid$ Land | ChangeNum$ 1 -S:Mode$ Continuous | Affected$ Creature.YouCtrl | AddHiddenKeyword$ CARDNAME can't attack. | Description$ Creatures you control can't attack. -S:Mode$ PreventDamage | Target$ You | Description$ Prevent all damage that would be dealt to you. +S:Mode$ CantAttack | ValidCard$ Creature.YouCtrl | Description$ Creatures you control can't attack. +R:Event$ DamageDone | Prevent$ True | ValidTarget$ You | Description$ Prevent all damage that would be dealt to you. SVar:RemAIDeck:True SVar:NonStackingEffect:True SVar:Picture:http://www.wizards.com/global/images/magic/general/glacial_chasm.jpg diff --git a/forge-gui/res/cardsfolder/g/goblin_furrier.txt b/forge-gui/res/cardsfolder/g/goblin_furrier.txt index a3d0f8dc33e..2e44a14fe8e 100644 --- a/forge-gui/res/cardsfolder/g/goblin_furrier.txt +++ b/forge-gui/res/cardsfolder/g/goblin_furrier.txt @@ -2,6 +2,6 @@ Name:Goblin Furrier ManaCost:1 R Types:Creature Goblin Warrior PT:2/2 -S:Mode$ PreventDamage | Source$ Card.Self | Target$ Creature.Snow | Description$ Prevent all damage that CARDNAME would deal to snow creatures. +R:Event$ DamageDone | Prevent$ True | ValidTarget$ Creature.Snow | ValidSource$ Card.Self | Description$ Prevent all damage that CARDNAME would deal to snow creatures. SVar:Picture:http://www.wizards.com/global/images/magic/general/goblin_furrier.jpg Oracle:Prevent all damage that Goblin Furrier would deal to snow creatures. diff --git a/forge-gui/res/cardsfolder/h/harmless_assault.txt b/forge-gui/res/cardsfolder/h/harmless_assault.txt index 091f874d26e..a894873f494 100644 --- a/forge-gui/res/cardsfolder/h/harmless_assault.txt +++ b/forge-gui/res/cardsfolder/h/harmless_assault.txt @@ -1,7 +1,7 @@ Name:Harmless Assault ManaCost:2 W W Types:Instant -A:SP$ Effect | Cost$ 2 W W | Name$ Harmless Assault Effect | StaticAbilities$ STPrevent | AILogic$ Fog | SpellDescription$ Prevent all combat damage that would be dealt this turn by attacking creatures. -SVar:STPrevent:Mode$ PreventDamage | EffectZone$ Command | Source$ Creature.attacking | CombatDamage$ True | Description$ Prevent all combat damage that would be dealt this turn by attacking creatures. +A:SP$ Effect | Cost$ 2 W W | Name$ Harmless Assault Effect | ReplacementEffects$ RPrevent | AILogic$ Fog | SpellDescription$ Prevent all combat damage that would be dealt this turn by attacking creatures. +SVar:RPrevent:Event$ DamageDone | Prevent$ True | IsCombat$ True | ActiveZones$ Command | ValidSource$ Creature.attacking | Description$ Prevent all combat damage that would be dealt this turn by attacking creatures. SVar:Picture:http://www.wizards.com/global/images/magic/general/harmless_assault.jpg Oracle:Prevent all combat damage that would be dealt this turn by attacking creatures. diff --git a/forge-gui/res/cardsfolder/h/haze_frog.txt b/forge-gui/res/cardsfolder/h/haze_frog.txt index bbc22010adf..63dcc94ff52 100644 --- a/forge-gui/res/cardsfolder/h/haze_frog.txt +++ b/forge-gui/res/cardsfolder/h/haze_frog.txt @@ -4,8 +4,8 @@ Types:Creature Frog PT:2/1 K:Flash T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigEffect | TriggerDescription$ When CARDNAME enters the battlefield, prevent all combat damage that other creatures would deal this turn. -SVar:TrigEffect:DB$ Effect | Name$ Haze Frog Effect | StaticAbilities$ HazeFrogPrevent | References$ HazeFrogPrevent | RememberObjects$ Self -SVar:HazeFrogPrevent:Mode$ PreventDamage | EffectZone$ Command | Source$ Creature.IsNotRemembered | CombatDamage$ True | Description$ Prevent all combat damage that other creatures would deal this turn. +SVar:TrigEffect:DB$ Effect | Name$ Haze Frog Effect | ReplacementEffects$ RPrevent | RememberObjects$ Self +SVar:RPrevent:Event$ DamageDone | Prevent$ True | IsCombat$ True | ActiveZones$ Command | ValidSource$ Creature.IsNotRemembered | Description$ Prevent all combat damage that other creatures would deal this turn. SVar:AmbushAI:True SVar:Picture:http://www.wizards.com/global/images/magic/general/haze_frog.jpg Oracle:Flash (You may cast this spell any time you could cast an instant.)\nWhen Haze Frog enters the battlefield, prevent all combat damage that other creatures would deal this turn. diff --git a/forge-gui/res/cardsfolder/h/heavy_fog.txt b/forge-gui/res/cardsfolder/h/heavy_fog.txt index cdb84ddce69..2c3d17c1e87 100644 --- a/forge-gui/res/cardsfolder/h/heavy_fog.txt +++ b/forge-gui/res/cardsfolder/h/heavy_fog.txt @@ -1,7 +1,7 @@ Name:Heavy Fog ManaCost:1 G Types:Instant -A:SP$ Effect | Cost$ 1 G | Name$ Heavy Fog Effect | StaticAbilities$ STPrevent | AILogic$ Fog | OpponentTurn$ True | ActivationPhases$ Declare Attackers | SpellDescription$ Cast CARDNAME only during the declare attackers step and only if you've been attacked this step. Prevent all damage that would be dealt to you this turn by attacking creatures. -SVar:STPrevent:Mode$ PreventDamage | EffectZone$ Command | Source$ Creature.attacking | Target$ You | Description$ Prevent all damage that would be dealt to you this turn by attacking creatures. +A:SP$ Effect | Cost$ 1 G | Name$ Heavy Fog Effect | ReplacementEffects$ RPrevent | AILogic$ Fog | OpponentTurn$ True | ActivationPhases$ Declare Attackers | SpellDescription$ Cast CARDNAME only during the declare attackers step and only if you've been attacked this step. Prevent all damage that would be dealt to you this turn by attacking creatures. +SVar:RPrevent:Event$ DamageDone | Prevent$ True | ActiveZones$ Command | ValidTarget$ You | ValidSource$ Creature.attacking | Description$ Prevent all damage that would be dealt to you this turn by attacking creatures. SVar:Picture:http://www.wizards.com/global/images/magic/general/heavy_fog.jpg Oracle:Cast Heavy Fog only during the declare attackers step and only if you've been attacked this step.\nPrevent all damage that would be dealt to you this turn by attacking creatures. diff --git a/forge-gui/res/cardsfolder/h/hindervines.txt b/forge-gui/res/cardsfolder/h/hindervines.txt index c4958a2d0e1..9e7468e4c1e 100644 --- a/forge-gui/res/cardsfolder/h/hindervines.txt +++ b/forge-gui/res/cardsfolder/h/hindervines.txt @@ -1,8 +1,8 @@ Name:Hindervines ManaCost:2 G Types:Instant -A:SP$ Effect | Cost$ 2 G | Name$ Hindervines Effect | StaticAbilities$ STPrevent | AILogic$ Fog | SpellDescription$ Prevent all combat damage that would be dealt this turn by creatures with no +1/+1 counters. -SVar:STPrevent:Mode$ PreventDamage | EffectZone$ Command | Source$ Creature.counters_EQ0_P1P1 | CombatDamage$ True | Description$ Prevent all combat damage that would be dealt by creatures with no +1/+1 counters. +A:SP$ Effect | Cost$ 2 G | Name$ Hindervines Effect | ReplacementEffects$ RPrevent | AILogic$ Fog | SpellDescription$ Prevent all combat damage that would be dealt this turn by creatures with no +1/+1 counters. +SVar:RPrevent:Event$ DamageDone | Prevent$ True | IsCombat$ True | ActiveZones$ Command | ValidSource$ Creature.counters_EQ0_P1P1 | Description$ Prevent all combat damage that would be dealt by creatures with no +1/+1 counters. DeckHints:Ability$Counters SVar:Picture:http://www.wizards.com/global/images/magic/general/hindervines.jpg Oracle:Prevent all combat damage that would be dealt this turn by creatures with no +1/+1 counters on them. diff --git a/forge-gui/res/cardsfolder/i/indentured_oaf.txt b/forge-gui/res/cardsfolder/i/indentured_oaf.txt index 9f4907e0aa0..e7126d97afe 100644 --- a/forge-gui/res/cardsfolder/i/indentured_oaf.txt +++ b/forge-gui/res/cardsfolder/i/indentured_oaf.txt @@ -2,6 +2,6 @@ Name:Indentured Oaf ManaCost:3 R Types:Creature Ogre Warrior PT:4/3 -S:Mode$ PreventDamage | Source$ Card.Self | Target$ Creature.Red | Description$ Prevent all damage that CARDNAME would deal to red creatures. +R:Event$ DamageDone | Prevent$ True | ValidTarget$ Creature.Red | ValidSource$ Card.Self | Description$ Prevent all damage that CARDNAME would deal to red creatures. SVar:Picture:http://www.wizards.com/global/images/magic/general/indentured_oaf.jpg Oracle:Prevent all damage that Indentured Oaf would deal to red creatures. diff --git a/forge-gui/res/cardsfolder/i/inner_sanctum.txt b/forge-gui/res/cardsfolder/i/inner_sanctum.txt index 43eea8b276b..845e0593a66 100644 --- a/forge-gui/res/cardsfolder/i/inner_sanctum.txt +++ b/forge-gui/res/cardsfolder/i/inner_sanctum.txt @@ -2,7 +2,7 @@ Name:Inner Sanctum ManaCost:1 W W Types:Enchantment K:Cumulative upkeep:PayLife<2>:Pay 2 life. -S:Mode$ PreventDamage | Target$ Creature.YouCtrl | Amount$ All | Description$ Prevent all damage that would be dealt to creatures you control. +R:Event$ DamageDone | Prevent$ True | ValidTarget$ Creature.YouCtrl | Description$ Prevent all damage that would be dealt to creatures you control. SVar:RemAIDeck:True SVar:NonStackingEffect:True SVar:Picture:http://www.wizards.com/global/images/magic/general/inner_sanctum.jpg diff --git a/forge-gui/res/cardsfolder/i/inviolability.txt b/forge-gui/res/cardsfolder/i/inviolability.txt index 8de88b1f240..1ce732d97d4 100644 --- a/forge-gui/res/cardsfolder/i/inviolability.txt +++ b/forge-gui/res/cardsfolder/i/inviolability.txt @@ -3,6 +3,6 @@ ManaCost:1 W Types:Enchantment Aura K:Enchant creature A:SP$ Attach | Cost$ 1 W | ValidTgts$ Creature | AILogic$ Pump -S:Mode$ PreventDamage | Target$ Creature.EnchantedBy | Description$ Prevent all damage that would be dealt to enchanted creature. +R:Event$ DamageDone | Prevent$ True | ValidTarget$ Creature.EnchantedBy | Description$ Prevent all damage that would be dealt to enchanted creature. SVar:Picture:http://www.wizards.com/global/images/magic/general/inviolability.jpg Oracle:Enchant creature\nPrevent all damage that would be dealt to enchanted creature. diff --git a/forge-gui/res/cardsfolder/l/light_of_sanction.txt b/forge-gui/res/cardsfolder/l/light_of_sanction.txt index f7ba08d24c9..27e301665da 100644 --- a/forge-gui/res/cardsfolder/l/light_of_sanction.txt +++ b/forge-gui/res/cardsfolder/l/light_of_sanction.txt @@ -1,7 +1,7 @@ Name:Light of Sanction ManaCost:1 W W Types:Enchantment -S:Mode$ PreventDamage | Target$ Creature.YouCtrl | Source$ Card.YouCtrl | Amount$ All | Description$ Prevent all damage that would be dealt to creatures you control by sources you control. +R:Event$ DamageDone | Prevent$ True | ValidTarget$ Creature.YouCtrl | ValidSource$ Card.YouCtrl,Emblem.YouCtrl | Description$ Prevent all damage that would be dealt to creatures you control by sources you control. SVar:NonStackingEffect:True SVar:RemRandomDeck:True SVar:Picture:http://www.wizards.com/global/images/magic/general/light_of_sanction.jpg diff --git a/forge-gui/res/cardsfolder/l/lithomancers_focus.txt b/forge-gui/res/cardsfolder/l/lithomancers_focus.txt index c7f7c121c18..62f5eabd196 100644 --- a/forge-gui/res/cardsfolder/l/lithomancers_focus.txt +++ b/forge-gui/res/cardsfolder/l/lithomancers_focus.txt @@ -2,9 +2,7 @@ Name:Lithomancer's Focus ManaCost:W Types:Instant A:SP$ Pump | Cost$ W | ValidTgts$ Creature | TgtPrompt$ Select target creature | NumAtt$ +2 | NumDef$ +2 | SubAbility$ DBEffect | SpellDescription$ Target creature gets +2/+2 until end of turn. Prevent all damage that would be dealt to that creature this turn by colorless sources. -SVar:DBEffect:DB$ Effect | Defined$ Targeted | StaticAbilities$ STPrevent | RememberObjects$ Targeted | Triggers$ OutOfSight | SVars$ ExileSelf -SVar:OutOfSight:Mode$ ChangesZone | TriggerZones$ Command | Origin$ Battlefield | Destination$ Any | ValidCard$ Card.IsRemembered | Execute$ ExileSelf | Static$ True -SVar:ExileSelf:DB$ ChangeZone | Defined$ Self | Origin$ Command | Destination$ Exile -SVar:STPrevent:Mode$ PreventDamage | EffectZone$ Command | Source$ Card.ColorlessSource | Target$ Card.IsRemembered | Description$ Prevent all damage that would be dealt to that creature this turn by colorless sources. +SVar:DBEffect:DB$ Effect | Defined$ Targeted | ReplacementEffects$ PreventColorless | RememberObjects$ Targeted | ForgetOnMoved$ Battlefield +SVar:PreventColorless:Event$ DamageDone | Prevent$ True | ActiveZones$ Command | ValidSource$ Card.ColorlessSource | Description$ Prevent all damage that would be dealt to that creature this turn by colorless sources. SVar:Picture:http://www.wizards.com/global/images/magic/general/lithomancers_focus.jpg Oracle:Target creature gets +2/+2 until end of turn. Prevent all damage that would be dealt to that creature this turn by colorless sources. diff --git a/forge-gui/res/cardsfolder/l/luminesce.txt b/forge-gui/res/cardsfolder/l/luminesce.txt index eb0e10de903..354cf871339 100644 --- a/forge-gui/res/cardsfolder/l/luminesce.txt +++ b/forge-gui/res/cardsfolder/l/luminesce.txt @@ -1,8 +1,8 @@ Name:Luminesce ManaCost:W Types:Instant -A:SP$ Effect | Cost$ W | StaticAbilities$ STPrevent | SpellDescription$ Prevent all damage that black sources and red sources would deal this turn. -SVar:STPrevent:Mode$ PreventDamage | EffectZone$ Command | Source$ Card.BlackSource,Card.RedSource | Description$ Prevent all damage that black sources and red sources would deal this turn. +A:SP$ Effect | Cost$ W | ReplacementEffects$ RPrevent | SpellDescription$ Prevent all damage that black sources and red sources would deal this turn. +SVar:RPrevent:Event$ DamageDone | Prevent$ True | ActiveZones$ Command | ValidSource$ Card.BlackSource,Card.RedSource | Description$ Prevent all damage that black sources and red sources would deal this turn. SVar:RemAIDeck:True SVar:RemRandomDeck:True SVar:Picture:http://www.wizards.com/global/images/magic/general/luminesce.jpg diff --git a/forge-gui/res/cardsfolder/m/magebane_armor.txt b/forge-gui/res/cardsfolder/m/magebane_armor.txt index 5f7696c9fae..21e057cc258 100644 --- a/forge-gui/res/cardsfolder/m/magebane_armor.txt +++ b/forge-gui/res/cardsfolder/m/magebane_armor.txt @@ -3,6 +3,6 @@ ManaCost:3 Types:Artifact Equipment K:Equip 2 S:Mode$ Continuous | Affected$ Card.EquippedBy | AddPower$ 2 | AddToughness$ 4 | RemoveKeyword$ Flying | Description$ Equipped creature gets +2/+4 and loses flying. -S:Mode$ PreventDamage | Target$ Card.EquippedBy | CombatDamage$ False | Description$ Prevent all noncombat damage that would be dealt to equipped creature. +R:Event$ DamageDone | Prevent$ True | ValidTarget$ Card.EquippedBy | IsCombat$ False | Description$ Prevent all noncombat damage that would be dealt to equipped creature. SVar:Picture:http://www.wizards.com/global/images/magic/general/magebane_armor.jpg Oracle:Equipped creature gets +2/+4 and loses flying.\nPrevent all noncombat damage that would be dealt to equipped creature.\nEquip {2} ({2}: Attach to target creature you control. Equip only as a sorcery.) diff --git a/forge-gui/res/cardsfolder/m/marble_priest.txt b/forge-gui/res/cardsfolder/m/marble_priest.txt index be3c5ead340..c6b65a68fe5 100644 --- a/forge-gui/res/cardsfolder/m/marble_priest.txt +++ b/forge-gui/res/cardsfolder/m/marble_priest.txt @@ -2,7 +2,7 @@ Name:Marble Priest ManaCost:5 Types:Artifact Creature Cleric PT:3/3 -K:All Walls able to block CARDNAME do so. -S:Mode$ PreventDamage | Source$ Wall | Target$ Card.Self | CombatDamage$ True | Description$ Prevent all combat damage that would be dealt to CARDNAME by Walls. +K:MustBeBlockedByAll:Creature.Wall:All Walls able to block CARDNAME do so. +R:Event$ DamageDone | Prevent$ True | ValidTarget$ Card.Self | ValidSource$ Wall | IsCombat$ True | Description$ Prevent all combat damage that would be dealt to CARDNAME by Walls. SVar:Picture:http://www.wizards.com/global/images/magic/general/marble_priest.jpg Oracle:All Walls able to block Marble Priest do so.\nPrevent all combat damage that would be dealt to Marble Priest by Walls. diff --git a/forge-gui/res/cardsfolder/m/mark_of_asylum.txt b/forge-gui/res/cardsfolder/m/mark_of_asylum.txt index 15084718686..735261daf8a 100644 --- a/forge-gui/res/cardsfolder/m/mark_of_asylum.txt +++ b/forge-gui/res/cardsfolder/m/mark_of_asylum.txt @@ -1,7 +1,7 @@ Name:Mark of Asylum ManaCost:1 W Types:Enchantment -S:Mode$ PreventDamage | Target$ Creature.YouCtrl | CombatDamage$ False | Description$ Prevent all noncombat damage that would be dealt to creatures you control. +R:Event$ DamageDone | Prevent$ True | ValidTarget$ Creature.YouCtrl | IsCombat$ False | Description$ Prevent all noncombat damage that would be dealt to creatures you control. SVar:NonStackingEffect:True SVar:Picture:http://www.wizards.com/global/images/magic/general/mark_of_asylum.jpg Oracle:Prevent all noncombat damage that would be dealt to creatures you control. diff --git a/forge-gui/res/cardsfolder/m/moonmist.txt b/forge-gui/res/cardsfolder/m/moonmist.txt index 6881f5805a9..51a75e86e4e 100644 --- a/forge-gui/res/cardsfolder/m/moonmist.txt +++ b/forge-gui/res/cardsfolder/m/moonmist.txt @@ -1,10 +1,9 @@ Name:Moonmist ManaCost:1 G Types:Instant -A:SP$ RepeatEach | Cost$ 1 G | RepeatCards$ Creature.Human+DoubleFaced | Zone$ Battlefield | RepeatSubAbility$ DBState | SubAbility$ DBCurseNonWolves | SpellDescription$ Transform all Humans. Prevent all combat damage that would be dealt this turn by creatures other than Werewolves and Wolves. (Only double-faced cards can be transformed.) -SVar:DBState:DB$ SetState | Defined$ Remembered | Mode$ Transform | SpellDescription$ Transform all Humans. Prevent all combat damage that would be dealt this turn by creatures other than Werewolves and Wolves. (Only double-faced cards can be transformed.) -SVar:DBCurseNonWolves:DB$ Effect | Name$ Moonmist Effect | StaticAbilities$ Curse -SVar:Curse:Mode$ PreventDamage | EffectZone$ Command | Source$ Creature.nonWerewolf+nonWolf | CombatDamage$ True | Description$ Prevent all combat damage that would be dealt this turn by creatures other than Werewolves and Wolves. +A:SP$ SetState | Cost$ 1 G | Defined$ Valid Creature.Human+DoubleFaced | Mode$ Transform | SubAbility$ DBCurseNonWolves | StackDescription$ SpellDescription | SpellDescription$ Transform all Humans. Prevent all combat damage that would be dealt this turn by creatures other than Werewolves and Wolves. (Only double-faced cards can be transformed.) +SVar:DBCurseNonWolves:DB$ Effect | Name$ Moonmist Effect | ReplacementEffects$ RPrevent +SVar:RPrevent:Event$ DamageDone | Prevent$ True | IsCombat$ True | ActiveZones$ Command | ValidSource$ Creature.nonWerewolf+nonWolf | Description$ Prevent all combat damage that would be dealt this turn by creatures other than Werewolves and Wolves. SVar:NeedsToPlay:Human.YouCtrl SVar:RemAIDeck:True SVar:Picture:http://www.wizards.com/global/images/magic/general/moonmist.jpg diff --git a/forge-gui/res/cardsfolder/m/mount_keralia.txt b/forge-gui/res/cardsfolder/m/mount_keralia.txt index 54da493b127..02c5764f18d 100644 --- a/forge-gui/res/cardsfolder/m/mount_keralia.txt +++ b/forge-gui/res/cardsfolder/m/mount_keralia.txt @@ -6,8 +6,8 @@ SVar:BuildPressure:DB$ PutCounter | Defined$ Self | CounterType$ PRESSURE | Coun T:Mode$ PlaneswalkedFrom | ValidCard$ Plane.Self | Execute$ Eruption | TriggerDescription$ When you planeswalk away from CARDNAME, it deals damage equal to the number of pressure counters on it to each creature and each planeswalker. SVar:Eruption:DB$ DamageAll | ValidCards$ Creature,Planeswalker | ValidDescription$ each creature and each planeswalker. | NumDmg$ KeraliaX | References$ KeraliaX T:Mode$ PlanarDice | Result$ Chaos | TriggerZones$ Command | Execute$ RolledChaos | TriggerDescription$ Whenever you roll {CHAOS}, prevent all damage that planes named CARDNAME would deal this game to permanents you control. -SVar:RolledChaos:DB$ Effect | Name$ Mount Keralia Effect | StaticAbilities$ KeraliaProtection | EffectOwner$ You | Duration$ Permanent | SpellDescription$ Prevent all damage that planes named CARDNAME would deal this game to permanents you control. -SVar:KeraliaProtection:Mode$ PreventDamage | EffectZone$ Command | Target$ Permanent.YouCtrl | Source$ Plane.namedMount Keralia | Description$ Prevent all damage that planes named Mount Keralia would deal this game to permanents you control. +SVar:RolledChaos:DB$ Effect | Name$ Mount Keralia Effect | ReplacementEffects$ RPrevent | EffectOwner$ You | Duration$ Permanent | SpellDescription$ Prevent all damage that planes named CARDNAME would deal this game to permanents you control. +SVar:RPrevent:Event$ DamageDone | Prevent$ True | ActiveZones$ Command | ValidTarget$ Permanent.YouCtrl | ValidSource$ Plane.namedMount Keralia | Description$ Prevent all damage that planes named Mount Keralia would deal this game to permanents you control. SVar:KeraliaX:TriggeredCard$CardCounters.PRESSURE SVar:AIRollPlanarDieParams:Mode$ Always | LowPriority$ True SVar:Picture:http://www.wizards.com/global/images/magic/general/mount_keralia.jpg diff --git a/forge-gui/res/cardsfolder/m/mourners_shield.txt b/forge-gui/res/cardsfolder/m/mourners_shield.txt index b54cf6f63ca..99823d23fc5 100644 --- a/forge-gui/res/cardsfolder/m/mourners_shield.txt +++ b/forge-gui/res/cardsfolder/m/mourners_shield.txt @@ -4,8 +4,8 @@ Types:Artifact T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigExile | TriggerDescription$ Imprint — When CARDNAME enters the battlefield, you may exile target card from a graveyard. SVar:TrigExile:DB$ ChangeZone | Origin$ Graveyard | Destination$ Exile | ValidTgts$ Card | Imprint$ True A:AB$ ChooseSource | Cost$ 2 T | Choices$ Card.SharesColorWith Imprinted | ChoiceTitle$ Choose a source that shares a color with the exiled card | RememberChosen$ True | AILogic$ NeedsPrevention | SubAbility$ DBEffect | SpellDescription$ Prevent all damage that would be dealt this turn by a source of your choice that shares a color with the exiled card. -SVar:DBEffect:DB$ Effect | StaticAbilities$ PreventFromSource | References$ PreventFromSource | RememberObjects$ Remembered | ConditionDefined$ Remembered | ConditionPresent$ Card | ConditionCompare$ GE1 | SubAbility$ DBCleanup -SVar:PreventFromSource:Mode$ PreventDamage | EffectZone$ Command | Source$ Card.IsRemembered | Description$ Prevent all damage that would be dealt by a source of your choice that shares a color with the exiled card. +SVar:DBEffect:DB$ Effect | ReplacementEffects$ RPrevent | RememberObjects$ Remembered | ConditionDefined$ Remembered | ConditionPresent$ Card | ConditionCompare$ GE1 | SubAbility$ DBCleanup +SVar:RPrevent:Event$ DamageDone | Prevent$ True | ActiveZones$ Command | ValidSource$ Card.IsRemembered | Description$ Prevent all damage that would be dealt by a source of your choice that shares a color with the exiled card. SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True T:Mode$ ChangesZone | Origin$ Battlefield | ValidCard$ Card.Self | Destination$ Any | Execute$ DBCleanImprinted | Static$ True SVar:DBCleanImprinted:DB$ Cleanup | ClearImprinted$ True diff --git a/forge-gui/res/cardsfolder/m/muzzle.txt b/forge-gui/res/cardsfolder/m/muzzle.txt index 3411448195c..1d0d2d57a25 100644 --- a/forge-gui/res/cardsfolder/m/muzzle.txt +++ b/forge-gui/res/cardsfolder/m/muzzle.txt @@ -3,6 +3,6 @@ ManaCost:1 W Types:Enchantment Aura K:Enchant creature A:SP$ Attach | Cost$ 1 W | ValidTgts$ Creature | AILogic$ Curse -S:Mode$ PreventDamage | Source$ Creature.EnchantedBy | Description$ Prevent all damage that would be dealt by enchanted creature. +R:Event$ DamageDone | Prevent$ True | ValidSource$ Creature.EnchantedBy | Description$ Prevent all damage that would be dealt by enchanted creature. SVar:Picture:http://www.wizards.com/global/images/magic/general/muzzle.jpg Oracle:Enchant creature\nPrevent all damage that would be dealt by enchanted creature. diff --git a/forge-gui/res/cardsfolder/p/personal_sanctuary.txt b/forge-gui/res/cardsfolder/p/personal_sanctuary.txt index 5c20d72de38..70ece589628 100644 --- a/forge-gui/res/cardsfolder/p/personal_sanctuary.txt +++ b/forge-gui/res/cardsfolder/p/personal_sanctuary.txt @@ -1,7 +1,7 @@ Name:Personal Sanctuary ManaCost:2 W Types:Enchantment -S:Mode$ PreventDamage | Target$ You | Condition$ PlayerTurn | Description$ During your turn, prevent all damage that would be dealt to you. +R:Event$ DamageDone | Prevent$ True | ValidTarget$ You | PlayerTurn$ True | Description$ During your turn, prevent all damage that would be dealt to you. SVar:NonStackingEffect:True SVar:Picture:http://www.wizards.com/global/images/magic/general/personal_sanctuary.jpg Oracle:During your turn, prevent all damage that would be dealt to you. diff --git a/forge-gui/res/cardsfolder/p/prismatic_strands.txt b/forge-gui/res/cardsfolder/p/prismatic_strands.txt index 06501d88ec7..5045f06db83 100644 --- a/forge-gui/res/cardsfolder/p/prismatic_strands.txt +++ b/forge-gui/res/cardsfolder/p/prismatic_strands.txt @@ -3,8 +3,8 @@ ManaCost:2 W Types:Instant K:Flashback tapXType<1/Creature.White/white creature> A:SP$ ChooseColor | Cost$ 2 W | Defined$ You | AILogic$ MostProminentInHumanDeck | SubAbility$ DBEffect -SVar:DBEffect:DB$ Effect | Name$ Prismatic Strands Effect | StaticAbilities$ STPrevent | SpellDescription$ Prevent all damage that sources of the color of your choice would deal this turn. -SVar:STPrevent:Mode$ PreventDamage | EffectZone$ Command | Target$ Creature,Player | Source$ Card.ChosenColor | Description$ Prevent all damage that sources of the chosen color would deal this turn. +SVar:DBEffect:DB$ Effect | Name$ Prismatic Strands Effect | ReplacementEffects$ RPrevent | SpellDescription$ Prevent all damage that sources of the color of your choice would deal this turn. +SVar:RPrevent:Event$ DamageDone | Prevent$ True | ActiveZones$ Command | ValidSource$ Card.ChosenColor | Description$ Prevent all damage that sources of the chosen color would deal this turn. SVar:RemAIDeck:True SVar:Picture:http://www.wizards.com/global/images/magic/general/prismatic_strands.jpg Oracle:Prevent all damage that sources of the color of your choice would deal this turn.\nFlashback—Tap an untapped white creature you control. (You may cast this card from your graveyard for its flashback cost. Then exile it.) diff --git a/forge-gui/res/cardsfolder/p/prismatic_ward.txt b/forge-gui/res/cardsfolder/p/prismatic_ward.txt index 04759ba32d7..17095cc5b75 100644 --- a/forge-gui/res/cardsfolder/p/prismatic_ward.txt +++ b/forge-gui/res/cardsfolder/p/prismatic_ward.txt @@ -4,7 +4,7 @@ Types:Enchantment Aura K:Enchant creature A:SP$ Attach | Cost$ 1 W | ValidTgts$ Creature | AILogic$ Pump K:ETBReplacement:Other:ChooseColor -SVar:ChooseColor:DB$ ChooseColor | Defined$ You | SpellDescription$ As CARDNAME enters the battlefield, choose a color. | AILogic$ MostProminentInHumanDeck -S:Mode$ PreventDamage | Target$ Creature.EnchantedBy | Source$ Card.ChosenColor | Description$ Prevent all damage that would be dealt to enchanted creature by sources of the chosen color. +SVar:ChooseColor:DB$ ChooseColor | Defined$ You | AILogic$ MostProminentInHumanDeck | SpellDescription$ As CARDNAME enters the battlefield, choose a color. +R:Event$ DamageDone | Prevent$ True | ValidTarget$ Creature.EnchantedBy | ValidSource$ Card.ChosenColor | Description$ Prevent all damage that would be dealt to enchanted creature by sources of the chosen color. SVar:Picture:http://www.wizards.com/global/images/magic/general/prismatic_ward.jpg Oracle:Enchant creature\nAs Prismatic Ward enters the battlefield, choose a color.\nPrevent all damage that would be dealt to enchanted creature by sources of the chosen color. diff --git a/forge-gui/res/cardsfolder/p/protective_sphere.txt b/forge-gui/res/cardsfolder/p/protective_sphere.txt index b702fa17fbb..feca31c7549 100644 --- a/forge-gui/res/cardsfolder/p/protective_sphere.txt +++ b/forge-gui/res/cardsfolder/p/protective_sphere.txt @@ -2,8 +2,8 @@ Name:Protective Sphere ManaCost:2 W Types:Enchantment A:AB$ ChooseSource | Cost$ 1 PayLife<1> | Choices$ Card.SharesColorWith ActivationColor | RememberChosen$ True | AILogic$ NeedsPrevention | SubAbility$ DBEffect | SpellDescription$ Prevent all damage that would be dealt to you this turn by a source of your choice that shares a color with the mana spent on this activation cost. (Colorless mana prevents no damage.) -SVar:DBEffect:DB$ Effect | StaticAbilities$ PreventFromSource | References$ PreventFromSource | RememberObjects$ Remembered | SubAbility$ DBCleanup | ConditionDefined$ Remembered | ConditionPresent$ Card | ConditionCompare$ GE1 | SubAbility$ DBCleanup -SVar:PreventFromSource:Mode$ PreventDamage | EffectZone$ Command | Target$ You | Source$ Card.IsRemembered | Description$ Prevent all damage that would be dealt to you by a source of your choice that shares a color with the mana spent on this activation cost. +SVar:DBEffect:DB$ Effect | ReplacementEffects$ RPrevent | RememberObjects$ Remembered | SubAbility$ DBCleanup | ConditionDefined$ Remembered | ConditionPresent$ Card | ConditionCompare$ GE1 | SubAbility$ DBCleanup +SVar:RPrevent:Event$ DamageDone | Prevent$ True | ActiveZones$ Command | ValidTarget$ You | ValidSource$ Card.IsRemembered | Description$ Prevent all damage that would be dealt to you by a source of your choice that shares a color with the mana spent on this activation cost. SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True SVar:RemAIDeck:True SVar:RemRandomDeck:True diff --git a/forge-gui/res/cardsfolder/r/radiant_kavu.txt b/forge-gui/res/cardsfolder/r/radiant_kavu.txt index 9ef76ed8bd6..c090a2392ab 100644 --- a/forge-gui/res/cardsfolder/r/radiant_kavu.txt +++ b/forge-gui/res/cardsfolder/r/radiant_kavu.txt @@ -2,8 +2,8 @@ Name:Radiant Kavu ManaCost:R G W Types:Creature Kavu PT:3/3 -A:AB$ Effect | Cost$ R G W | Name$ Radiant Kavu Effect | StaticAbilities$ STPrevent | SpellDescription$ Prevent all combat damage blue creatures and black creatures would deal this turn. -SVar:STPrevent:Mode$ PreventDamage | EffectZone$ Command | Source$ Creature.Blue,Creature.Black | CombatDamage$ True | Description$ Prevent all combat damage blue creatures and black creatures would deal this turn. +A:AB$ Effect | Cost$ R G W | Name$ Radiant Kavu Effect | ReplacementEffects$ RPrevent | SpellDescription$ Prevent all combat damage blue creatures and black creatures would deal this turn. +SVar:RPrevent:Event$ DamageDone | Prevent$ True | IsCombat$ True | ActiveZones$ Command | ValidSource$ Creature.Blue,Creature.Black | Description$ Prevent all combat damage blue creatures and black creatures would deal this turn. SVar:RemAIDeck:True SVar:Picture:http://www.wizards.com/global/images/magic/general/radiant_kavu.jpg Oracle:{R}{G}{W}: Prevent all combat damage blue creatures and black creatures would deal this turn. diff --git a/forge-gui/res/cardsfolder/r/repel_the_abominable.txt b/forge-gui/res/cardsfolder/r/repel_the_abominable.txt index c7e5f4d6afd..3e6cb194f48 100644 --- a/forge-gui/res/cardsfolder/r/repel_the_abominable.txt +++ b/forge-gui/res/cardsfolder/r/repel_the_abominable.txt @@ -1,8 +1,8 @@ Name:Repel the Abominable ManaCost:1 W Types:Instant -A:SP$ Effect | Cost$ 1 W | Name$ Repel the Abominable Effect | StaticAbilities$ STPrevent | SpellDescription$ Prevent all damage that would be dealt this turn by non-Human sources. -SVar:STPrevent:Mode$ PreventDamage | EffectZone$ Command | Source$ Card.nonHuman | Description$ Prevent all damage that would be dealt this turn by non-Human sources. +A:SP$ Effect | Cost$ 1 W | Name$ Repel the Abominable Effect | ReplacementEffects$ RPrevent | SpellDescription$ Prevent all damage that would be dealt this turn by non-Human sources. +SVar:RPrevent:Event$ DamageDone | Prevent$ True | ValidSource$ Card.nonHuman,Emblem | ActiveZones$ Command | Description$ Prevent all damage that would be dealt this turn by non-Human sources. SVar:RemAIDeck:True SVar:Picture:http://www.wizards.com/global/images/magic/general/repel_the_abominable.jpg Oracle:Prevent all damage that would be dealt this turn by non-Human sources. diff --git a/forge-gui/res/cardsfolder/r/riot_control.txt b/forge-gui/res/cardsfolder/r/riot_control.txt index 8f361d38bf5..d2229d7c549 100644 --- a/forge-gui/res/cardsfolder/r/riot_control.txt +++ b/forge-gui/res/cardsfolder/r/riot_control.txt @@ -2,8 +2,8 @@ Name:Riot Control ManaCost:2 W Types:Instant A:SP$ GainLife | Cost$ 2 W | Defined$ You | LifeAmount$ X | References$ X | SubAbility$ DBEffect | SpellDescription$ You gain 1 life for each creature your opponents control. Prevent all damage that would be dealt to you this turn. -SVar:DBEffect:DB$ Effect | StaticAbilities$ STPrevent -SVar:STPrevent:Mode$ PreventDamage | EffectZone$ Command | Target$ You | Description$ Prevent all damage that would be dealt to you this turn. +SVar:DBEffect:DB$ Effect | ReplacementEffects$ RPrevent +SVar:RPrevent:Event$ DamageDone | Prevent$ True | ActiveZones$ Command | ValidTarget$ You | Description$ Prevent all damage that would be dealt to you this turn. SVar:X:Count$Valid Creature.OppCtrl SVar:RemAIDeck:True SVar:Picture:http://www.wizards.com/global/images/magic/general/riot_control.jpg diff --git a/forge-gui/res/cardsfolder/s/safe_passage.txt b/forge-gui/res/cardsfolder/s/safe_passage.txt index 88d0e9782e6..66e33592ce6 100644 --- a/forge-gui/res/cardsfolder/s/safe_passage.txt +++ b/forge-gui/res/cardsfolder/s/safe_passage.txt @@ -1,7 +1,7 @@ Name:Safe Passage ManaCost:2 W Types:Instant -A:SP$ Effect | Cost$ 2 W | Name$ Safe Passage Effect | StaticAbilities$ STPrevent | AILogic$ Fog | SpellDescription$ Prevent all damage that would be dealt to you and creatures you control this turn. -SVar:STPrevent:Mode$ PreventDamage | EffectZone$ Command | Target$ You,Creature.YouCtrl | Description$ Prevent all damage that would be dealt to you and creatures you control this turn. +A:SP$ Effect | Cost$ 2 W | Name$ Safe Passage Effect | ReplacementEffects$ RPrevent | AILogic$ Fog | SpellDescription$ Prevent all damage that would be dealt to you and creatures you control this turn. +SVar:RPrevent:Event$ DamageDone | Prevent$ True | ActiveZones$ Command | ValidTarget$ You,Creature.YouCtrl | Description$ Prevent all damage that would be dealt to you and creatures you control this turn. SVar:Picture:http://www.wizards.com/global/images/magic/general/safe_passage.jpg Oracle:Prevent all damage that would be dealt to you and creatures you control this turn. diff --git a/forge-gui/res/cardsfolder/s/scarecrow.txt b/forge-gui/res/cardsfolder/s/scarecrow.txt index febdcd3094b..b0dc42bfc70 100644 --- a/forge-gui/res/cardsfolder/s/scarecrow.txt +++ b/forge-gui/res/cardsfolder/s/scarecrow.txt @@ -2,8 +2,8 @@ Name:Scarecrow ManaCost:5 Types:Artifact Creature Scarecrow PT:2/2 -A:AB$ Effect | Cost$ 6 T | Name$ Scarecrow Effect | StaticAbilities$ STPrevent | SpellDescription$ Prevent all damage that would be dealt to you this turn by creatures with flying. -SVar:STPrevent:Mode$ PreventDamage | EffectZone$ Command | Target$ You | Source$ Creature.withFlying | Description$ Prevent all damage that would be dealt to you this turn by creatures with flying. +A:AB$ Effect | Cost$ 6 T | Name$ Scarecrow Effect | ReplacementEffects$ RPrevent | SpellDescription$ Prevent all damage that would be dealt to you this turn by creatures with flying. +SVar:RPrevent:Event$ DamageDone | Prevent$ True | ActiveZones$ Command | ValidTarget$ You | ValidSource$ Creature.withFlying | Description$ Prevent all damage that would be dealt to you this turn by creatures with flying. SVar:RemAIDeck:True SVar:Picture:http://www.wizards.com/global/images/magic/general/scarecrow.jpg Oracle:{6}, {T}: Prevent all damage that would be dealt to you this turn by creatures with flying. diff --git a/forge-gui/res/cardsfolder/s/selfless_squire.txt b/forge-gui/res/cardsfolder/s/selfless_squire.txt index f300be842bf..9033ee7a83a 100644 --- a/forge-gui/res/cardsfolder/s/selfless_squire.txt +++ b/forge-gui/res/cardsfolder/s/selfless_squire.txt @@ -4,8 +4,8 @@ Types:Creature Human Soldier PT:1/1 K:Flash T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ DBEffect | TriggerDescription$ When CARDNAME enters the battlefield, prevent all damage that would be dealt to you this turn. -SVar:DBEffect:DB$ Effect | StaticAbilities$ Prevent | SVars$ Prevent -SVar:Prevent:Mode$ PreventDamage | EffectZone$ Command | Target$ You | Description$ Prevent all damage that would be dealt to you this turn. +SVar:DBEffect:DB$ Effect | ReplacementEffects$ RPrevent +SVar:RPrevent:Event$ DamageDone | Prevent$ True | ActiveZones$ Command | ValidTarget$ You | Description$ Prevent all damage that would be dealt to you this turn. T:Mode$ DamagePreventedOnce | ValidTarget$ You | TriggerZones$ Battlefield | Execute$ TrigPut | References$ X | TriggerDescription$ Whenever damage that would be dealt to you is prevented, put that many +1/+1 counters on CARDNAME. SVar:TrigPut:DB$ PutCounter | Defined$ Self | CounterType$ P1P1 | CounterNum$ X | References$ X SVar:X:TriggerCount$DamageAmount diff --git a/forge-gui/res/cardsfolder/s/shieldmage_advocate.txt b/forge-gui/res/cardsfolder/s/shieldmage_advocate.txt index 0fcc8ae4bca..fc3aa90eae9 100644 --- a/forge-gui/res/cardsfolder/s/shieldmage_advocate.txt +++ b/forge-gui/res/cardsfolder/s/shieldmage_advocate.txt @@ -3,11 +3,9 @@ ManaCost:2 W Types:Creature Human Cleric PT:1/3 A:AB$ ChangeZone | Cost$ T | ValidTgts$ Card.OppOwn | TgtPrompt$ Select target card in an opponent's graveyard | Origin$ Graveyard | Destination$ Hand | SubAbility$ DBChooseSource | SpellDescription$ Return target card from an opponent's graveyard to his or her hand. Prevent all damage that would be dealt to target creature or player this turn by a source of your choice. -SVar:DBChooseSource:DB$ ChooseSource | Choices$ Card | AILogic$ NeedsPrevention | SubAbility$ DBEffect -SVar:DBEffect:DB$ Effect | ValidTgts$ Creature,Player | TgtPrompt$ Select target creature or player to prevent damage | Triggers$ OutOfSight | StaticAbilities$ PreventFromSource | References$ PreventFromSource,OutOfSight,ExileEffect | RememberObjects$ TargetedPlayer,ThisTargetedCard | SubAbility$ DBCleanup | ConditionDefined$ ChosenCard | ConditionPresent$ Card | ConditionCompare$ GE1 | SubAbility$ DBCleanup -SVar:OutOfSight:Mode$ ChangesZone | TriggerZones$ Command | Origin$ Battlefield | Destination$ Any | ValidCard$ Card.IsRemembered | Execute$ ExileEffect | Static$ True -SVar:PreventFromSource:Mode$ PreventDamage | EffectZone$ Command | Source$ Card.ChosenCard | Target$ Player.IsRemembered,Card.IsRemembered | Description$ Prevent all damage that would be dealt to target creature or player this turn by a source of your choice. -SVar:ExileEffect:DB$ ChangeZone | Defined$ Self | Origin$ Command | Destination$ Exile +SVar:DBChooseSource:DB$ ChooseSource | Choices$ Card,Emblem | AILogic$ NeedsPrevention | SubAbility$ DBEffect +SVar:DBEffect:DB$ Effect | ValidTgts$ Creature,Player | TgtPrompt$ Select target creature or player to prevent damage | ForgetOnMoved$ Battlefield | ReplacementEffects$ RPrevent | References$ RPrevent | RememberObjects$ TargetedPlayer,ThisTargetedCard | SubAbility$ DBCleanup | ConditionDefined$ ChosenCard | ConditionPresent$ Card | ConditionCompare$ GE1 | SubAbility$ DBCleanup +SVar:RPrevent:Event$ DamageDone | Prevent$ True | ActiveZones$ Command | ValidSource$ Card.ChosenCard | ValidTarget$ Player.IsRemembered,Card.IsRemembered | Description$ Prevent all damage that would be dealt to target creature or player this turn by a source of your choice. SVar:DBCleanup:DB$ Cleanup | ClearChosenCard$ True SVar:RemAIDeck:True SVar:Picture:http://www.wizards.com/global/images/magic/general/shieldmage_advocate.jpg diff --git a/forge-gui/res/cardsfolder/s/sivvis_ruse.txt b/forge-gui/res/cardsfolder/s/sivvis_ruse.txt index 7fa0a14c69e..2082be2dc08 100644 --- a/forge-gui/res/cardsfolder/s/sivvis_ruse.txt +++ b/forge-gui/res/cardsfolder/s/sivvis_ruse.txt @@ -2,8 +2,8 @@ Name:Sivvi's Ruse ManaCost:2 W W Types:Instant S:Mode$ Continuous | Affected$ Card.Self | EffectZone$ All | AddKeyword$ Alternative Cost:0 | CheckSVar$ X | CheckSecondSVar$ Y | Description$ If an opponent controls a Mountain and you control a Plains, you may cast CARDNAME without paying its mana cost. -A:SP$ Effect | Cost$ 2 W W | Name$ Sivvi's Ruse Effect | StaticAbilities$ STPrevent | SpellDescription$ Prevent all damage that would be dealt this turn to creatures you control. -SVar:STPrevent:Mode$ PreventDamage | EffectZone$ Command | Target$ Creature.YouCtrl | Description$ Prevent all damage that would be dealt this turn to creatures you control. +A:SP$ Effect | Cost$ 2 W W | Name$ Sivvi's Ruse Effect | ReplacementEffects$ RPrevent | SpellDescription$ Prevent all damage that would be dealt this turn to creatures you control. +SVar:RPrevent:Event$ DamageDone | Prevent$ True | ActiveZones$ Command | ValidTarget$ Creature.YouCtrl | Description$ Prevent all damage that would be dealt this turn to creatures you control. SVar:X:Count$Valid Mountain.OppCtrl SVar:Y:Count$Valid Plains.YouCtrl SVar:RemAIDeck:True diff --git a/forge-gui/res/cardsfolder/s/snag.txt b/forge-gui/res/cardsfolder/s/snag.txt index 907ddf21446..47386a3806f 100644 --- a/forge-gui/res/cardsfolder/s/snag.txt +++ b/forge-gui/res/cardsfolder/s/snag.txt @@ -2,7 +2,7 @@ Name:Snag ManaCost:3 G Types:Instant SVar:AltCost:Cost$ Discard<1/Forest> -A:SP$ Effect | Cost$ 3 G | Name$ Snag Effect | StaticAbilities$ STPrevent | AILogic$ Fog | SpellDescription$ Prevent all combat damage that would be dealt by unblocked creatures this turn. -SVar:STPrevent:Mode$ PreventDamage | EffectZone$ Command | Source$ Creature.unblocked | CombatDamage$ True | Description$ Prevent all combat damage that would be dealt by unblocked creatures this turn. +A:SP$ Effect | Cost$ 3 G | Name$ Snag Effect | ReplacementEffects$ RPrevent | AILogic$ Fog | SpellDescription$ Prevent all combat damage that would be dealt by unblocked creatures this turn. +SVar:RPrevent:Event$ DamageDone | Prevent$ True | IsCombat$ True | ActiveZones$ Command | ValidSource$ Creature.unblocked | Description$ Prevent all combat damage that would be dealt by unblocked creatures this turn. SVar:Picture:http://www.wizards.com/global/images/magic/general/snag.jpg Oracle:You may discard a Forest card rather than pay Snag's mana cost.\nPrevent all combat damage that would be dealt by unblocked creatures this turn. diff --git a/forge-gui/res/cardsfolder/s/solitary_confinement.txt b/forge-gui/res/cardsfolder/s/solitary_confinement.txt index 4fe521ff1af..b1edad93fd2 100644 --- a/forge-gui/res/cardsfolder/s/solitary_confinement.txt +++ b/forge-gui/res/cardsfolder/s/solitary_confinement.txt @@ -4,7 +4,7 @@ Types:Enchantment K:UpkeepCost:Discard<1/Card> S:Mode$ Continuous | Affected$ You | AddKeyword$ Skip your draw step. | Description$ Skip your draw step. S:Mode$ Continuous | Affected$ You | AddKeyword$ Shroud | Description$ You have shroud. (You can't be the target of spells or abilities.) -S:Mode$ PreventDamage | Target$ You | Description$ Prevent all damage that would be dealt to you. +R:Event$ DamageDone | Prevent$ True | ValidTarget$ You | Description$ Prevent all damage that would be dealt to you. SVar:RemAIDeck:True SVar:Picture:http://www.wizards.com/global/images/magic/general/solitary_confinement.jpg Oracle:At the beginning of your upkeep, sacrifice Solitary Confinement unless you discard a card.\nSkip your draw step.\nYou have shroud. (You can't be the target of spells or abilities.)\nPrevent all damage that would be dealt to you. diff --git a/forge-gui/res/cardsfolder/s/stonewise_fortifier.txt b/forge-gui/res/cardsfolder/s/stonewise_fortifier.txt index 98eda6d2e9c..12c568239bd 100644 --- a/forge-gui/res/cardsfolder/s/stonewise_fortifier.txt +++ b/forge-gui/res/cardsfolder/s/stonewise_fortifier.txt @@ -2,10 +2,8 @@ Name:Stonewise Fortifier ManaCost:1 W Types:Creature Human Wizard PT:2/2 -A:AB$ Effect | Cost$ 4 W | ValidTgts$ Creature | RememberObjects$ Targeted | ImprintCards$ Self | Triggers$ OutOfSight | SVars$ ExileSelf | StaticAbilities$ STPrevent | SpellDescription$ Prevent all damage that would be dealt to CARDNAME by target creature this turn. -SVar:STPrevent:Mode$ PreventDamage | EffectZone$ Command | Target$ Card.IsImprinted | Source$ Creature.IsRemembered | Description$ Prevent all damage that would be dealt to CARDNAME by target creature this turn. -SVar:OutOfSight:Mode$ ChangesZone | TriggerZones$ Command | Origin$ Battlefield | Destination$ Any | ValidCard$ Card.IsRemembered,Card.IsImprinted | Execute$ ExileSelf | Static$ True -SVar:ExileSelf:DB$ ChangeZone | Defined$ Self | Origin$ Command | Destination$ Exile +A:AB$ Effect | Cost$ 4 W | ValidTgts$ Creature | RememberObjects$ Targeted | ImprintCards$ Self | ForgetOnMoved$ Battlefield | ReplacementEffects$ RPrevent | Duration$ HostLeavesOrEOT | SpellDescription$ Prevent all damage that would be dealt to CARDNAME by target creature this turn. +SVar:RPrevent:Event$ DamageDone | Prevent$ True | IsCombat$ True | ActiveZones$ Command | ValidTarget$ Card.IsImprinted | ValidSource$ Creature.IsRemembered | Description$ Prevent all damage that would be dealt to CARDNAME by target creature this turn. SVar:RemAIDeck:True SVar:Picture:http://www.wizards.com/global/images/magic/general/stonewise_fortifier.jpg Oracle:{4}{W}: Prevent all damage that would be dealt to Stonewise Fortifier by target creature this turn. diff --git a/forge-gui/res/cardsfolder/t/talruum_piper.txt b/forge-gui/res/cardsfolder/t/talruum_piper.txt index 3c01389c612..b5a32ffc3b8 100644 --- a/forge-gui/res/cardsfolder/t/talruum_piper.txt +++ b/forge-gui/res/cardsfolder/t/talruum_piper.txt @@ -2,6 +2,6 @@ Name:Talruum Piper ManaCost:4 R Types:Creature Minotaur PT:3/3 -K:All creatures with flying able to block CARDNAME do so. +K:MustBeBlockedByAll:Creature.withFlying:All creatures with flying able to block CARDNAME do so. SVar:Picture:http://www.wizards.com/global/images/magic/general/talruum_piper.jpg Oracle:All creatures with flying able to block Talruum Piper do so. diff --git a/forge-gui/res/cardsfolder/t/tanglesap.txt b/forge-gui/res/cardsfolder/t/tanglesap.txt index cb6da8eaa69..668bad47def 100644 --- a/forge-gui/res/cardsfolder/t/tanglesap.txt +++ b/forge-gui/res/cardsfolder/t/tanglesap.txt @@ -1,7 +1,7 @@ Name:Tanglesap ManaCost:1 G Types:Instant -A:SP$ Effect | Cost$ 1 G | Name$ Tanglesap Effect | StaticAbilities$ STPrevent | AILogic$ Fog | SpellDescription$ Prevent all combat damage that would be dealt this turn by creatures without trample. -SVar:STPrevent:Mode$ PreventDamage | EffectZone$ Command | Source$ Creature.withoutTrample | CombatDamage$ True | Description$ Prevent all combat damage that would be dealt this turn by creatures without trample. +A:SP$ Effect | Cost$ 1 G | Name$ Tanglesap Effect | ReplacementEffects$ RPrevent | AILogic$ Fog | SpellDescription$ Prevent all combat damage that would be dealt this turn by creatures without trample. +SVar:RPrevent:Event$ DamageDone | Prevent$ True | IsCombat$ True | ActiveZones$ Command | ValidSource$ Creature.withoutTrample | Description$ Prevent all combat damage that would be dealt this turn by creatures without trample. SVar:Picture:http://www.wizards.com/global/images/magic/general/tanglesap.jpg Oracle:Prevent all combat damage that would be dealt this turn by creatures without trample. diff --git a/forge-gui/res/cardsfolder/t/terrifying_presence.txt b/forge-gui/res/cardsfolder/t/terrifying_presence.txt index 855630ccd73..a21c435d1d7 100644 --- a/forge-gui/res/cardsfolder/t/terrifying_presence.txt +++ b/forge-gui/res/cardsfolder/t/terrifying_presence.txt @@ -1,8 +1,8 @@ Name:Terrifying Presence ManaCost:1 G Types:Instant -A:SP$ Effect | Cost$ 1 G | Name$ Terrifying Presence Effect | ValidTgts$ Creature | TgtPrompt$ Select target creature | StaticAbilities$ STPrevent | RememberObjects$ Targeted | SpellDescription$ Prevent all damage that would be dealt this turn by creatures other than target creature. -SVar:STPrevent:Mode$ PreventDamage | EffectZone$ Command | Source$ Creature.IsNotRemembered | CombatDamage$ True | Description$ Prevent all damage that would be dealt this turn by creatures other than target creature. +A:SP$ Effect | Cost$ 1 G | Name$ Terrifying Presence Effect | ValidTgts$ Creature | TgtPrompt$ Select target creature | ReplacementEffects$ RPrevent | RememberObjects$ Targeted | SpellDescription$ Prevent all damage that would be dealt this turn by creatures other than target creature. +SVar:RPrevent:Event$ DamageDone | Prevent$ True | IsCombat$ True | ActiveZones$ Command | ValidSource$ Creature.IsNotRemembered | Description$ Prevent all damage that would be dealt this turn by creatures other than target creature. SVar:RemAIDeck:True SVar:Picture:http://www.wizards.com/global/images/magic/general/terrifying_presence.jpg Oracle:Prevent all combat damage that would be dealt by creatures other than target creature this turn. diff --git a/forge-gui/res/cardsfolder/v/vine_snare.txt b/forge-gui/res/cardsfolder/v/vine_snare.txt index 2afb6a508b4..482bc87d849 100644 --- a/forge-gui/res/cardsfolder/v/vine_snare.txt +++ b/forge-gui/res/cardsfolder/v/vine_snare.txt @@ -1,8 +1,8 @@ Name:Vine Snare ManaCost:2 G Types:Instant -A:SP$ Effect | Cost$ 2 G | Name$ Vine Snare Effect | StaticAbilities$ STPrevent | AILogic$ Fog | SpellDescription$ Prevent all combat damage that would be dealt this turn by creatures with power 4 or less. -SVar:STPrevent:Mode$ PreventDamage | EffectZone$ Command | Source$ Creature.powerLE4 | CombatDamage$ True | Description$ Prevent all combat damage that would be dealt this turn by creatures with power 4 or less. +A:SP$ Effect | Cost$ 2 G | Name$ Vine Snare Effect | ReplacementEffects$ RPrevent | AILogic$ Fog | SpellDescription$ Prevent all combat damage that would be dealt this turn by creatures with power 4 or less. +SVar:RPrevent:Event$ DamageDone | Prevent$ True | ValidSource$ Creature.powerLE4 | IsCombat$ True | ActiveZones$ Command | Description$ Prevent all combat damage that would be dealt this turn by creatures with power 4 or less. SVar:RemAIDeck:True SVar:Picture:http://www.wizards.com/global/images/magic/general/vine_snare.jpg Oracle:Prevent all combat damage that would be dealt this turn by creatures with power 4 or less. diff --git a/forge-gui/res/cardsfolder/w/well_laid_plans.txt b/forge-gui/res/cardsfolder/w/well_laid_plans.txt index 26e9213c9c5..289fdbadf36 100644 --- a/forge-gui/res/cardsfolder/w/well_laid_plans.txt +++ b/forge-gui/res/cardsfolder/w/well_laid_plans.txt @@ -1,7 +1,7 @@ Name:Well-Laid Plans ManaCost:2 U Types:Enchantment -S:Mode$ PreventDamage | Source$ Creature | Target$ Creature | SourceSharesColorWithTarget$ True | Description$ Prevent all damage that would be dealt to a creature by another creature if they share a color. +R:Event$ DamageDone | Prevent$ True | ValidTarget$ Creature | ValidSource$ Creature | RelativeToSource$ Creature.SharesColorWith | Description$ Prevent all damage that would be dealt to a creature by another creature if they share a color. SVar:NonStackingEffect:True SVar:RemRandomDeck:True SVar:Picture:http://www.wizards.com/global/images/magic/general/well_laid_plans.jpg diff --git a/forge-gui/res/cardsfolder/w/winds_of_qal_sisma.txt b/forge-gui/res/cardsfolder/w/winds_of_qal_sisma.txt index 431840cedb8..ab2b009fa6b 100644 --- a/forge-gui/res/cardsfolder/w/winds_of_qal_sisma.txt +++ b/forge-gui/res/cardsfolder/w/winds_of_qal_sisma.txt @@ -1,10 +1,10 @@ Name:Winds of Qal Sisma ManaCost:1 G Types:Instant -A:SP$ Effect | Cost$ 1 G | Name$ Winds of Qal Sisma Effect | StaticAbilities$ STPrevent1 | AILogic$ Fog | ConditionCheckSVar$ X | ConditionSVarCompare$ EQ0 | References$ X | SubAbility$ DBEffect | SpellDescription$ Prevent all combat damage that would be dealt this turn. Ferocious — If you control a creature with power 4 or greater, instead prevent all combat damage that would be dealt this turn by creatures your opponents control. -SVar:DBEffect:DB$ Effect | Name$ Winds of Qal Sisma Effect | StaticAbilities$ STPrevent2 | AILogic$ Fog | ConditionCheckSVar$ X | ConditionSVarCompare$ GE1 | References$ X -SVar:STPrevent1:Mode$ PreventDamage | EffectZone$ Command | Source$ Creature | CombatDamage$ True | Description$ Prevent all combat damage that would be dealt this turn. -SVar:STPrevent2:Mode$ PreventDamage | EffectZone$ Command | Source$ Creature.OppCtrl | CombatDamage$ True | Description$ Prevent all combat damage that would be dealt this turn by creatures your opponents control. +A:SP$ Effect | Cost$ 1 G | Name$ Winds of Qal Sisma Effect | ReplacementEffects$ RPrevent1 | AILogic$ Fog | ConditionCheckSVar$ X | ConditionSVarCompare$ EQ0 | References$ X | SubAbility$ DBEffect | SpellDescription$ Prevent all combat damage that would be dealt this turn. Ferocious — If you control a creature with power 4 or greater, instead prevent all combat damage that would be dealt this turn by creatures your opponents control. +SVar:DBEffect:DB$ Effect | Name$ Winds of Qal Sisma Effect | ReplacementEffects$ RPrevent2 | AILogic$ Fog | ConditionCheckSVar$ X | ConditionSVarCompare$ GE1 | References$ X +SVar:RPrevent1:Event$ DamageDone | Prevent$ True | IsCombat$ True | ActiveZones$ Command | Description$ Prevent all combat damage that would be dealt this turn. +SVar:RPrevent2:Event$ DamageDone | Prevent$ True | ValidSource$ Creature.OppCtrl | IsCombat$ True | ActiveZones$ Command | Description$ Prevent all combat damage that would be dealt this turn by creatures your opponents control. SVar:X:Count$Valid Creature.YouCtrl+powerGE4 SVar:Picture:http://www.wizards.com/global/images/magic/general/winds_of_qal_sisma.jpg Oracle:Prevent all combat damage that would be dealt this turn.\nFerocious — If you control a creature with power 4 or greater, instead prevent all combat damage that would be dealt this turn by creatures your opponents control.