diff --git a/projects/mtg/bin/Res/sets/primitives/mtg.txt b/projects/mtg/bin/Res/sets/primitives/mtg.txt index bd0f7dd1d..665508a12 100644 --- a/projects/mtg/bin/Res/sets/primitives/mtg.txt +++ b/projects/mtg/bin/Res/sets/primitives/mtg.txt @@ -12041,8 +12041,8 @@ type=Artifact [/card] [card] name=Blood Crypt -auto=tap(noevent) -auto=pay({L:2}) untap +auto=noactivatedability ueot +auto=pay({L:2}) name(pay 2 life) donothing name(pay 2 life) && -noactivatedability all(this)?tap(noevent) && -noactivatedability all(this) text=({T}: Add {B} or {R} to your mana pool.) -- As Blood Crypt enters the battlefield, you may pay 2 life. If you don't, Blood Crypt enters the battlefield tapped. type=Land subtype=Swamp Mountain @@ -14751,8 +14751,8 @@ type=Enchantment [/card] [card] name=Breeding Pool -auto=tap(noevent) -auto=pay({L:2}) untap +auto=noactivatedability ueot +auto=pay({L:2}) name(pay 2 life) donothing name(pay 2 life) && -noactivatedability all(this)?tap(noevent) && -noactivatedability all(this) text=({T}: Add {G} or {U} to your mana pool.) -- As Breeding Pool enters the battlefield, you may pay 2 life. If you don't, Breeding Pool enters the battlefield tapped. type=Land subtype=Forest Island @@ -48249,8 +48249,8 @@ toughness=5 [/card] [card] name=Godless Shrine -auto=tap(noevent) -auto=pay({L:2}) untap +auto=noactivatedability ueot +auto=pay({L:2}) name(pay 2 life) donothing name(pay 2 life) && -noactivatedability all(this)?tap(noevent) && -noactivatedability all(this) text=({T}: Add {W} or {B} to your mana pool.) -- As Godless Shrine enters the battlefield, you may pay 2 life. If you don't, Godless Shrine enters the battlefield tapped. type=Land subtype=Plains Swamp @@ -51535,8 +51535,8 @@ type=Sorcery [/card] [card] name=Hallowed Fountain -auto=tap(noevent) -auto=pay({L:2}) untap +auto=noactivatedability ueot +auto=pay({L:2}) name(pay 2 life) donothing name(pay 2 life) && -noactivatedability all(this)?tap(noevent) && -noactivatedability all(this) text=({T}: Add {W} or {U} to your mana pool.) -- As Hallowed Fountain enters the battlefield, you may pay 2 life. If you don't, Hallowed Fountain enters the battlefield tapped. type=Land subtype=Plains Island @@ -82985,8 +82985,8 @@ type=Enchantment [/card] [card] name=Overgrown Tomb -auto=tap(noevent) -auto=pay({L:2}) untap +auto=noactivatedability ueot +auto=pay({L:2}) name(pay 2 life) donothing name(pay 2 life) && -noactivatedability all(this)?tap(noevent) && -noactivatedability all(this) text=({T}: Add {B} or {G} to your mana pool.) -- As Overgrown Tomb enters the battlefield, you may pay 2 life. If you don't, Overgrown Tomb enters the battlefield tapped. type=Land subtype=Swamp Forest @@ -97241,8 +97241,8 @@ type=Artifact [/card] [card] name=Sacred Foundry -auto=tap(noevent) -auto=may untap && life:-2 controller +auto=noactivatedability ueot +auto=pay({L:2}) name(pay 2 life) donothing name(pay 2 life) && -noactivatedability all(this)?tap(noevent) && -noactivatedability all(this) text=({T}: Add {R} or {W} to your mana pool.) -- As Sacred Foundry enters the battlefield, you may pay 2 life. If you don't, Sacred Foundry enters the battlefield tapped. type=Land subtype=Mountain Plains @@ -112274,8 +112274,8 @@ toughness=5 [/card] [card] name=Steam Vents -auto=tap(noevent) -auto=pay({L:2}) untap +auto=noactivatedability ueot +auto=pay({L:2}) name(pay 2 life) donothing name(pay 2 life) && -noactivatedability all(this)?tap(noevent) && -noactivatedability all(this) text=({T}: Add {U} or {R} to your mana pool.) -- As Steam Vents enters the battlefield, you may pay 2 life. If you don't, Steam Vents enters the battlefield tapped. type=Land subtype=Island Mountain @@ -112828,8 +112828,8 @@ toughness=3 [/card] [card] name=Stomping Ground -auto=tap(noevent) -auto=pay({L:2}) untap +auto=noactivatedability ueot +auto=pay({L:2}) name(pay 2 life) donothing name(pay 2 life) && -noactivatedability all(this)?tap(noevent) && -noactivatedability all(this) text=({T}: Add {R} or {G} to your mana pool.) -- As Stomping Ground enters the battlefield, you may pay 2 life. If you don't, Stomping Ground enters the battlefield tapped. type=Land subtype=Mountain Forest @@ -117754,8 +117754,8 @@ toughness=2 [/card] [card] name=Temple Garden -auto=tap(noevent) -auto=pay({L:2}) untap +auto=noactivatedability ueot +auto=pay({L:2}) name(pay 2 life) donothing name(pay 2 life) && -noactivatedability all(this)?tap(noevent) && -noactivatedability all(this) text=({T}: Add {G} or {W} to your mana pool.) -- As Temple Garden enters the battlefield, you may pay 2 life. If you don't, Temple Garden enters the battlefield tapped. type=Land subtype=Forest Plains @@ -130573,7 +130573,7 @@ type=Sorcery [/card] [card] name=Wand of Denial -auto={t}:target(player) reveal:1 optionone name(Get Creature) target(*|reveal) transforms((,newability[pay({L:2}) name(Pay Life) moveto(ownergraveyard) ])) forever optiononeend optiontwo name(put back) target(<1>*|reveal) moveto(ownerlibrary) optiontwoend revealend +auto={t}:target(player) reveal:1 optionone name(Get Creature) target(*|reveal) transforms((,newability[pay[[{L:2}]] name(Pay Life) moveto(ownergraveyard) ])) forever optiononeend optiontwo name(put back) target(<1>*|reveal) moveto(ownerlibrary) optiontwoend revealend text={T}: Look at the top card of target player's library. If it's a nonland card, you may pay 2 life. If you do, put it into that player's graveyard. mana={2} type=Artifact @@ -131484,8 +131484,8 @@ type=Instant [/card] [card] name=Watery Grave -auto=tap(noevent) -auto=pay({L:2}) untap +auto=noactivatedability ueot +auto=pay({L:2}) name(pay 2 life) donothing name(pay 2 life) && -noactivatedability all(this)?tap(noevent) && -noactivatedability all(this) text=({T}: Add {U} or {B} to your mana pool.) -- As Watery Grave enters the battlefield, you may pay 2 life. If you don't, Watery Grave enters the battlefield tapped. type=Land subtype=Island Swamp diff --git a/projects/mtg/src/ExtraCost.cpp b/projects/mtg/src/ExtraCost.cpp index e79c93098..fc21e686a 100644 --- a/projects/mtg/src/ExtraCost.cpp +++ b/projects/mtg/src/ExtraCost.cpp @@ -95,7 +95,7 @@ ExtraManaCost * ExtraManaCost::clone() const } ExtraManaCost::ExtraManaCost(ManaCost * costToPay) - : ExtraCost("Pay The Cost",NULL, costToPay) + : ExtraCost("",NULL, costToPay) { } @@ -321,13 +321,19 @@ SpecificLifeCost::SpecificLifeCost(TargetChooser *_tc, int slc) int SpecificLifeCost::canPay() { - MTGCardInstance * _target = (MTGCardInstance *) target; + if(source->controller()->life >= slc && !source->controller()->inPlay()->hasAbility(Constants::CANTCHANGELIFE) && + !source->controller()->opponent()->game->battlefield->hasAbility(Constants::CANTPAYLIFE) && + !source->controller()->game->battlefield->hasAbility(Constants::CANTPAYLIFE)) + { + return 1; + } + /*MTGCardInstance * _target = (MTGCardInstance *) target; if(_target->controller()->life >= slc && !_target->controller()->inPlay()->hasAbility(Constants::CANTCHANGELIFE) && !_target->controller()->opponent()->game->battlefield->hasAbility(Constants::CANTPAYLIFE) && !_target->controller()->game->battlefield->hasAbility(Constants::CANTPAYLIFE)) { return 1; - } + }*/ return 0; }