Pernicious Deed (Working & Added)

Card coding that have been confirmed working and added to the SVN are moved in this forum. Do not post here.
Locked

Pernicious Deed Test Results

Poll ended at Sun Jul 24, 2011 3:37 am

Supported
0
No votes
Borderline
1
100%
Crappy
0
No votes
Unsupported
0
No votes
Dangerous
0
No votes
Don't work at all!
0
No votes
 
Total votes: 1

moxen
Posts: 254
Joined: Fri May 21, 2010 7:00 am

Pernicious Deed (Working & Added)

Post by moxen »

If you smell what The Rock is cooking!

Image

Code: Select all

[Card]
name=Pernicious Deed
mana={1}{B}{G}
auto={0}{S}:token(-2595300)
auto={1}{S}:token(-2595301)
auto={2}{S}:token(-2595302)
auto={3}{S}:token(-2595303)
auto={4}{S}:token(-2595304)
auto={5}{S}:token(-2595305)
auto={6}{S}:token(-2595306)
auto={7}{S}:token(-2595307)
auto={8}{S}:token(-2595308)
auto={9}{S}:token(-2595309)
auto={10}{S}:token(-2595310)
auto={11}{S}:token(-2595311)
auto={12}{S}:token(-2595312)
auto={13}{S}:token(-2595313)
auto={14}{S}:token(-2595314)
auto={15}{S}:token(-2595315)
auto={16}{S}:token(-2595316)
type=enchantment
text=X, Sacrifice Pernicious Deed: Destroy each artifact, creature, and enchantment with converted mana cost X or less.
[/Card]
[Card]
name=PD for 0
type=nothing
auto=@movedto(this|exile):destroy all(*[-nothing;[manacost=0]|battlefield)
auto=moveto(exile) all(this)
id=-2595300
[/Card]
[Card]
name=PD for 1
type=nothing
auto=@movedto(this|exile):destroy all(*[-nothing;[manacost<=1]|battlefield)
auto=moveto(exile) all(this)
id=-2595301
[/Card]
[Card]
name=PD for 2
type=nothing
auto=@movedto(this|exile):destroy all(*[-nothing;[manacost<=2]|battlefield)
auto=moveto(exile) all(this)
id=-2595302
[/Card]
[Card]
name=PD for 3
type=nothing
auto=@movedto(this|exile):destroy all(*[-nothing;manacost<=3]|battlefield)
auto=moveto(exile) all(this)
id=-2595303
[/Card]
[Card]
name=PD for 4
type=nothing
auto=@movedto(this|exile):destroy all(*[-nothing;[manacost<=4]|battlefield)
auto=moveto(exile) all(this)
id=-2595304
[/Card]
[Card]
name=PD for 5
type=nothing
auto=@movedto(this|exile):destroy all(*[-nothing;manacost<=5]|battlefield)
auto=moveto(exile) all(this)
id=-2595305
[/Card]
[Card]
name=PD for 6
type=nothing
auto=@movedto(this|exile):destroy all(*[-nothing;[manacost<=6]|battlefield)
auto=moveto(exile) all(this)
id=-2595306
[/Card]
[Card]
name=PD for 7
type=nothing
auto=@movedto(this|exile):destroy all(*[-nothing;[manacost<=7]|battlefield)
auto=moveto(exile) all(this)
id=-2595307
[/Card]
[Card]
name=PD for 8
type=nothing
auto=@movedto(this|exile):destroy all(*[-nothing;[manacost<=8]|battlefield)
auto=moveto(exile) all(this)
id=-2595308
[/Card]
[Card]
name=PD for 9
type=nothing
auto=@movedto(this|exile):destroy all(*[-nothing;[manacost<=9]|battlefield)
auto=moveto(exile) all(this)
id=-2595309
[/Card]
[Card]
name=PD for 10
type=nothing
auto=@movedto(this|exile):destroy all(*[-nothing;[manacost=0]|battlefield)
auto=moveto(exile) all(this)
id=-2595310
[/Card]
[Card]
name=PD for 11
type=nothing
auto=@movedto(this|exile):destroy all(*[-nothing;[manacost<=11]|battlefield)
auto=moveto(exile) all(this)
id=-2595311
[/Card]
[Card]
name=PD for 12
type=nothing
auto=@movedto(this|exile):destroy all(*[-nothing;[manacost<=12]|battlefield)
auto=moveto(exile) all(this)
id=-2595312
[/Card]
[Card]
name=PD for 13
type=nothing
auto=@movedto(this|exile):destroy all(*[-nothing;[manacost<=13]|battlefield)
auto=moveto(exile) all(this)
id=-2595313
[/Card]
[Card]
name=PD for 14
type=nothing
auto=@movedto(this|exile):destroy all(*[-nothing;[manacost<=14]|battlefield)
auto=moveto(exile) all(this)
id=-2595314
[/Card]
[Card]
name=PD for 15
type=nothing
auto=@movedto(this|exile):destroy all(*[-nothing;[manacost<=15]|battlefield)
auto=moveto(exile) all(this)
id=-2595315
[/Card]
[Card]
name=PD for 16
type=nothing
auto=@movedto(this|exile):destroy all(*[-nothing;[manacost<=16]|battlefield)
auto=moveto(exile) all(this)
id=-2595316
[/Card]
Using Zeth's selection technique.
Last edited by moxen on Sat Jul 24, 2010 3:37 am, edited 2 times in total.
Only those crazy enough to think they can change the world are the ones who do.

Wishlist: Sneak Attack, Through the Breach, Aluren, Serra Avatar, Goblin Piledriver
Zethfox
Posts: 3029
Joined: Thu Jun 10, 2010 11:28 pm

Re: Pernicious Deed(Requires Confirmation)

Post by Zethfox »

nice work
moxen
Posts: 254
Joined: Fri May 21, 2010 7:00 am

Re: Pernicious Deed(Requires Confirmation/Token Workaround)

Post by moxen »

Can we add this to your addon zeth?
Only those crazy enough to think they can change the world are the ones who do.

Wishlist: Sneak Attack, Through the Breach, Aluren, Serra Avatar, Goblin Piledriver
Zethfox
Posts: 3029
Joined: Thu Jun 10, 2010 11:28 pm

Re: Pernicious Deed(Requires Confirmation/Token Workaround)

Post by Zethfox »

moxen wrote:Can we add this to your addon zeth?
i dont have write access to it, but yeah i wouldnt mind adding it as long as theres no id conflicts...
kaioshin
Posts: 267
Joined: Wed Feb 25, 2009 1:49 pm

Re: Pernicious Deed(Requires Confirmation/Token Workaround)

Post by kaioshin »

Hey, thanks for the card. There are a few big flaws in the code, though. This shouldn't destroy all lands, for example...

Here's a code without tokens, which is much cleaner and should work 100%:

Code: Select all

[Card]
name=Pernicious Deed
mana={1}{B}{G}
auto={1}{S}:name(X = 1) && destroy all(creature[manacost<=1]) && destroy all(enchantment[manacost<=1]) && destroy all(artifact[manacost<=1])
auto={2}{S}:name(X = 2) && destroy all(creature[manacost<=2]) && destroy all(enchantment[manacost<=2]) && destroy all(artifact[manacost<=2])
auto={3}{S}:name(X = 3) && destroy all(creature[manacost<=3]) && destroy all(enchantment[manacost<=3]) && destroy all(artifact[manacost<=3])
auto={4}{S}:name(X = 4) && destroy all(creature[manacost<=4]) && destroy all(enchantment[manacost<=4]) && destroy all(artifact[manacost<=4])
auto={5}{S}:name(X = 5) && destroy all(creature[manacost<=5]) && destroy all(enchantment[manacost<=5]) && destroy all(artifact[manacost<=5])
auto={6}{S}:name(X = 6) && destroy all(creature[manacost<=6]) && destroy all(enchantment[manacost<=6]) && destroy all(artifact[manacost<=6])
auto={7}{S}:name(X = 7) && destroy all(creature[manacost<=7]) && destroy all(enchantment[manacost<=7]) && destroy all(artifact[manacost<=7])
auto={8}{S}:name(X = 8) && destroy all(creature[manacost<=8]) && destroy all(enchantment[manacost<=8]) && destroy all(artifact[manacost<=8])
auto={9}{S}:name(X = 9) && destroy all(creature[manacost<=9]) && destroy all(enchantment[manacost<=9]) && destroy all(artifact[manacost<=9])
auto={10}{S}:name(X = 10) && destroy all(creature[manacost<=10]) && destroy all(enchantment[manacost<=10]) && destroy all(artifact[manacost<=10])
auto={11}{S}:name(X = 11) && destroy all(creature[manacost<=11]) && destroy all(enchantment[manacost<=11]) && destroy all(artifact[manacost<=11])
auto={12}{S}:name(X = 12) && destroy all(creature[manacost<=12]) && destroy all(enchantment[manacost<=12]) && destroy all(artifact[manacost<=12])
auto={13}{S}:name(X = 13) && destroy all(creature[manacost<=13]) && destroy all(enchantment[manacost<=13]) && destroy all(artifact[manacost<=13])
auto={14}{S}:name(X = 14) && destroy all(creature[manacost<=14]) && destroy all(enchantment[manacost<=14]) && destroy all(artifact[manacost<=14])
auto={15}{S}:name(X = 15) && destroy all(creature[manacost<=15]) && destroy all(enchantment[manacost<=15]) && destroy all(artifact[manacost<=15])
auto={16}{S}:name(X = 16) && destroy all(creature[manacost<=16]) && destroy all(enchantment[manacost<=16]) && destroy all(artifact[manacost<=16])
type=enchantment
text=X, Sacrifice Pernicious Deed: Destroy each artifact, creature, and enchantment with converted mana cost X or less.
[/Card]
cheers
moxen
Posts: 254
Joined: Fri May 21, 2010 7:00 am

Re: Pernicious Deed(Requires Confirmation/Token Workaround)

Post by moxen »

kaioshin wrote:Hey, thanks for the card. There are a few big flaws in the code, though. This shouldn't destroy all lands, for example...

Here's a code without tokens, which is much cleaner and should work 100%:

Code: Select all

[Card]
name=Pernicious Deed
mana={1}{B}{G}
auto={1}{S}:name(X = 1) && destroy all(creature[manacost<=1]) && destroy all(enchantment[manacost<=1]) && destroy all(artifact[manacost<=1])
auto={2}{S}:name(X = 2) && destroy all(creature[manacost<=2]) && destroy all(enchantment[manacost<=2]) && destroy all(artifact[manacost<=2])
auto={3}{S}:name(X = 3) && destroy all(creature[manacost<=3]) && destroy all(enchantment[manacost<=3]) && destroy all(artifact[manacost<=3])
auto={4}{S}:name(X = 4) && destroy all(creature[manacost<=4]) && destroy all(enchantment[manacost<=4]) && destroy all(artifact[manacost<=4])
auto={5}{S}:name(X = 5) && destroy all(creature[manacost<=5]) && destroy all(enchantment[manacost<=5]) && destroy all(artifact[manacost<=5])
auto={6}{S}:name(X = 6) && destroy all(creature[manacost<=6]) && destroy all(enchantment[manacost<=6]) && destroy all(artifact[manacost<=6])
auto={7}{S}:name(X = 7) && destroy all(creature[manacost<=7]) && destroy all(enchantment[manacost<=7]) && destroy all(artifact[manacost<=7])
auto={8}{S}:name(X = 8) && destroy all(creature[manacost<=8]) && destroy all(enchantment[manacost<=8]) && destroy all(artifact[manacost<=8])
auto={9}{S}:name(X = 9) && destroy all(creature[manacost<=9]) && destroy all(enchantment[manacost<=9]) && destroy all(artifact[manacost<=9])
auto={10}{S}:name(X = 10) && destroy all(creature[manacost<=10]) && destroy all(enchantment[manacost<=10]) && destroy all(artifact[manacost<=10])
auto={11}{S}:name(X = 11) && destroy all(creature[manacost<=11]) && destroy all(enchantment[manacost<=11]) && destroy all(artifact[manacost<=11])
auto={12}{S}:name(X = 12) && destroy all(creature[manacost<=12]) && destroy all(enchantment[manacost<=12]) && destroy all(artifact[manacost<=12])
auto={13}{S}:name(X = 13) && destroy all(creature[manacost<=13]) && destroy all(enchantment[manacost<=13]) && destroy all(artifact[manacost<=13])
auto={14}{S}:name(X = 14) && destroy all(creature[manacost<=14]) && destroy all(enchantment[manacost<=14]) && destroy all(artifact[manacost<=14])
auto={15}{S}:name(X = 15) && destroy all(creature[manacost<=15]) && destroy all(enchantment[manacost<=15]) && destroy all(artifact[manacost<=15])
auto={16}{S}:name(X = 16) && destroy all(creature[manacost<=16]) && destroy all(enchantment[manacost<=16]) && destroy all(artifact[manacost<=16])
type=enchantment
text=X, Sacrifice Pernicious Deed: Destroy each artifact, creature, and enchantment with converted mana cost X or less.
[/Card]
cheers
LOL ya I just realised that. Didn't pay enough attention to testing it enough. :lol:
Only those crazy enough to think they can change the world are the ones who do.

Wishlist: Sneak Attack, Through the Breach, Aluren, Serra Avatar, Goblin Piledriver
moxen
Posts: 254
Joined: Fri May 21, 2010 7:00 am

Re: Pernicious Deed(Requires Confirmation/Token Workaround)

Post by moxen »

kaioshin, the reason why I used the selection method is so that you can choose exactly how much you wanna blow for so that you can actually float mana from artifacts or creatures.
Only those crazy enough to think they can change the world are the ones who do.

Wishlist: Sneak Attack, Through the Breach, Aluren, Serra Avatar, Goblin Piledriver
Zethfox
Posts: 3029
Joined: Thu Jun 10, 2010 11:28 pm

Re: Pernicious Deed(Requires Confirmation/Token Workaround)

Post by Zethfox »

hey instead of all the &&" stuff, why not try....

auto={1}{S}:name(X = 1) && destroy all(*[-land;manacost<=1])

it should work the same
moxen
Posts: 254
Joined: Fri May 21, 2010 7:00 am

Re: Pernicious Deed(Requires Confirmation/Token Workaround)

Post by moxen »

Zethfox wrote:hey instead of all the &&" stuff, why not try....

auto={1}{S}:name(X = 1) && destroy all(*[-land;manacost<=1])

it should work the same
What happens if it blows and an artifact land is in play? Does it still destroy the artifact land? It's suppose to. PD play in rock is quite critical in the mana cost that is activated. You don't just blow everything to bits so I think it is still very important to maintain a selection of how much should be blow instead of using up all mana in the pool.
Only those crazy enough to think they can change the world are the ones who do.

Wishlist: Sneak Attack, Through the Breach, Aluren, Serra Avatar, Goblin Piledriver
Dr.Solomat
Posts: 975
Joined: Mon Dec 15, 2008 5:12 pm
Location: Germany

Re: Pernicious Deed (Working & Added)

Post by Dr.Solomat »

Pernicious Deed in now part of the main game. You can already play with it on Wagic 0.13.1.


[card]
name=Pernicious Deed
auto={0}{S}:name(X = 0) && destroy all(*[-land;manacost=0])
auto={1}{S}:name(X = 1) && destroy all(*[-land;manacost<=1])
auto={2}{S}:name(X = 2) && destroy all(*[-land;manacost<=2])
auto={3}{S}:name(X = 3) && destroy all(*[-land;manacost<=3])
auto={4}{S}:name(X = 4) && destroy all(*[-land;manacost<=4])
auto={5}{S}:name(X = 5) && destroy all(*[-land;manacost<=5])
auto={6}{S}:name(X = 6) && destroy all(*[-land;manacost<=6])
auto={7}{S}:name(X = 7) && destroy all(*[-land;manacost<=7])
auto={8}{S}:name(X = 8) && destroy all(*[-land;manacost<=8])
auto={9}{S}:name(X = 9) && destroy all(*[-land;manacost<=9])
auto={10}{S}:name(X = 10) && destroy all(*[-land;manacost<=10])
auto={11}{S}:name(X = 11) && destroy all(*[-land;manacost<=11])
auto={12}{S}:name(X = 12) && destroy all(*[-land;manacost<=12])
auto={13}{S}:name(X = 13) && destroy all(*[-land;manacost<=13])
auto={14}{S}:name(X = 14) && destroy all(*[-land;manacost<=14])
auto={15}{S}:name(X = 15) && destroy all(*[-land;manacost<=15])
auto={16}{S}:name(X = 16) && destroy all(*[-land;manacost<=16])
text={X}, Sacrifice Pernicious Deed: Destroy each artifact, creature, and enchantment with converted mana cost X or less.
mana={1}{B}{G}
type=Enchantment
[/card]
Sets Coded/Released: Legends, Visions, Weatherlight, Tempest, Stronghold, Portal I & III, Urza's Saga BLOCK, Mercadian Masques, Invasion BLOCK, Mirrodin, Ravnica, Guildpact, Conflux, Alara Reborn
Locked