Commit Graph

747 Commits

Author SHA1 Message Date
wagic.the.homebrew
fe83b6b4e8 - moved test for i718
- Added macros for Basic landcycling and cycling
2011-11-12 12:48:00 +00:00
wagic.the.homebrew
a94e0a11cf Fixing Giant growth. This fixes the 5 failing tests from the test suite 2011-11-12 04:47:12 +00:00
solo81@web.de
9a93824539 1) Fixed issue758.
2) Finished updating cards with cycle.

3) Coded some cards with "@cycled...".

Astral Slide
Fleeting Aven
Invigorating Boon
Stoic Champion
Warped Researcher.

Tests will follow!
2011-11-09 23:08:54 +00:00
omegablast2002@yahoo.com
3dcd85944c updated cycling cards, I cheated at this and did a replace :cycling with {cycle):draw:1 so forgive me if it screwed up a cycle card...it should be brain dead easy to fix. 2011-11-09 14:29:28 +00:00
omegablast2002@yahoo.com
a48011fe2c serra's avanger.... 2011-10-29 11:20:21 +00:00
punkeduard@gmail.com
45f09972ad Some fixes to primitives/mtg.txt
Falkenrath Marauders
Witchbane Orb
Nin, the pain artist
walking corpse
Amphin Cutthroat
Serra Avenger

added Gideon's Lawkeeper
2011-10-26 05:24:17 +00:00
wagic.the.homebrew
6825082d6d - Add a simple macro system for auto lines (the goal is to help mostly with repetitive card auto lines such as the ones we have in MotD mod) Check the MotD mod for examples.
-- I added an AbilityParser.cpp file, mid term goal is to move AbilityFactory there, so that MTGAbility.cpp becomes a bit less big.
-- I tried to add the file reference in Makefiles, but only tested windows compilation so far
- Fixed bugs related to "castRestriction" variables in MTGAbility. these variables were declared in both the parent and children classes, leading to bugs and duplicate code/content

The test suite passes
2011-10-15 16:19:29 +00:00
wagic.the.homebrew
512f214374 Fix Miraculous Recovery 2011-10-15 02:01:21 +00:00
guzhenjie1@gmail.com
71949f636d Corrected Undead Alchemist and rarity of Skaab Ruinator. 2011-10-13 14:44:32 +00:00
guzhenjie1@gmail.com
dee49728aa Removed all { } inside "name(" code in following cards:
Azorius Herald
Boros Fury-Shield
Dryad's Caress
Ogre Savant
Patagia Viper
Plaxmanta
Ribbons of Night
Rolling Spoil
Seed Spark
Steamcore Weird
Tin Street Hooligan
Vigor Mortis

Replaced all counter(1/1), counter(1/2) and counter(2/2) to counter(1/1,1), counter(1/2,1) and counter(2/2,1).
2011-10-11 12:46:43 +00:00
punkeduard@gmail.com
71bab2ba7b fixed cards:
Bloodcrazed Neonate
Greatsword
Kite Shield
Swiftfoot Boots
Pride Guardian
2011-10-04 07:20:03 +00:00
guzhenjie1@gmail.com
7e1566fe77 Corrected Carrion Beetles and Reveillark. 2011-10-02 11:07:15 +00:00
omegablast2002@yahoo.com
70ab70651a fixed a few bad lines in mtg.txt...doc, elvish baserker had some pretty interesting abilities. 2011-10-01 21:28:05 +00:00
solo81@web.de
d7e9ee7796 Changed the code of all cards with a trigger (@...) and ":aslongas()". Example: Bloodhall Ooze.
This is its new code:
[card]
name=Bloodhall Ooze
auto=@each my upkeep restriction{type(*[black]|myBattlefield)~morethan~0}:may counter(1/1)
auto=@each my upkeep restriction{type(*[green]|myBattlefield)~morethan~0}:may counter(1/1)
text=At the beginning of your upkeep, if you control a black permanent, you may put a +1/+1 counter on Bloodhall Ooze. -- At the beginning of your upkeep, if you control a green permanent, you may put a +1/+1 counter on Bloodhall Ooze.
mana={R}
type=Creature
subtype=Ooze
power=1
toughness=1
[/card]

This new version, using one of Zeth's latest additions ("restriction{...}"), shows to be a nice improvement concerning the ingame experience: NOW, the trigger will only show up in the interruption window if the restriction is matched. In the old version, it always showed up in the restriction window whenever the trigger potentially could trigger, even if the restriction was not matched.

"restriction{}" also gives us more options in coding new cards. This is one of them:

[card]
name=Library of Alexandria
auto={T}:add{1}
auto={T}:draw:1 restriction{type(*|myhand)~equalto~7}
text={T}: Add {1} to your mana pool. -- {T}: Draw a card. Activate this ability only if you have exactly seven cards in hand.
type=Land
[/card]

A famous and powerful classic! And you can for sure only tap it to draw a card if you have 7 cards in it.


Exchanged the Multikicker test for another one. The older one was doing trouble.
2011-09-29 21:16:24 +00:00
guzhenjie1@gmail.com
4ea2446a15 Corrected Sejiri Steppe. 2011-09-29 16:26:28 +00:00
solo81@web.de
29e9cad492 Fixed Tetravite token. 2011-09-25 21:15:45 +00:00
solo81@web.de
28dbb4de96 Fixed One-Eyed Scarecrow. 2011-09-25 21:01:31 +00:00
solo81@web.de
df3b2a7fa6 Corrected several card ids from ISD.
Corrected Grimgrins cost and text.
2011-09-24 12:27:44 +00:00
solo81@web.de
7ba6c8e85d Added Innistrad (ISD). 200 cards out of 264 were codable for now. 2011-09-23 19:12:26 +00:00
solo81@web.de
83cdf5c151 1) Removed all "{0}" from the upcost bracket of all cards with Echo. Once it was needed to work around a bug, but now that the bug is fixed.
2) Updated all {X}-spells with x targets. They are using "prex" instead of "x" now. Their code is now completely   
following the official rules.

3) Changed the code of most cards which search your library for a land card and put it onto the battlefield tapped.
They are using "and((tap))" now. More cards will be changed to that in upcoming revisions.

4) Added 2 tests to save "prex".
2011-09-22 23:34:11 +00:00
omegablast2002@yahoo.com
997b154d46 volcanic eruption updated to use prex 2011-09-21 20:28:01 +00:00
guzhenjie1@gmail.com
5abc1293ce Corrected Crumbling Colossus. 2011-09-18 15:52:44 +00:00
omegablast2002@yahoo.com
2b8d174bfa Reveillark updated 2011-09-18 06:58:29 +00:00
guzhenjie1@gmail.com
0fd6b8caae Corrected Guardians' Pledge, Osai Vultures, Quietus Spike and Squall Drifter. 2011-09-13 12:56:10 +00:00
omegablast2002@yahoo.com
c39c94c71a commented out puresteels ability. 2011-09-13 05:06:10 +00:00
omegablast2002@yahoo.com
3c7a6abbeb changed avatar of discord to a better version. 2011-09-12 18:40:33 +00:00
omegablast2002@yahoo.com
0e52a20b8b heres a shocker, first time ever...zeth removes a card from wagic supported....
puresteel paladin...removed from supported...added to unsupported. 
I have no idea why, but this card has cause a surge of completely different bug reports, crashes, strange interactions between cards, you name it...im surprised we didn't receive a report that it caused someone dog to die of heartworms....

anyways if i find some time, i will debug this pandora's box of a code and see why exactly it causes such strange difficult to reproduce bugs.
2011-09-12 15:41:44 +00:00
guzhenjie1@gmail.com
e453cfadd7 Corrected Tezzeret's Gambit. 2011-09-12 08:07:23 +00:00
solo81@web.de
70208685f1 Optimized the card code of Merfolk Looter and 15 similar cards.
Now they no longer need a token workaround, but work as cards on their own.
2011-09-11 22:25:29 +00:00
solo81@web.de
e9f16d371b Card text update. -- The phrase "is put into a graveyard from battlefield" has been officially changed to "dies" a relatively long time ago.
This change does only affect creatures. Non-creature permanents keep the old wording.
2011-09-11 21:44:32 +00:00
solo81@web.de
fc52b31326 Added 15 tests to secure the latest card code package for future changes. 2011-09-11 16:07:33 +00:00
omegablast2002@yahoo.com
89d6936eb0 Shimian Specter....aparently everyone on the forums uses this card. 2011-09-11 08:03:57 +00:00
omegablast2002@yahoo.com
cabd82e736 there was a set of bad chars infront of the grade in unsupported.txt that was causing it to load the cards. 2011-09-09 17:28:39 +00:00
solo81@web.de
3b073f863f Added 3 that should have been part of my last commit. 2011-09-06 23:13:55 +00:00
guzhenjie1@gmail.com
95d6fa297a Corrected Mycoloth and Nantuko Cultivator. 2011-09-06 13:47:14 +00:00
omegablast2002@yahoo.com
df4aa9f6c2 changed gemhide sliver to a better version. thanks kevlahnota 2011-09-04 05:42:05 +00:00
omegablast2002@yahoo.com
42e10cd233 fixed typo in harrow. 2011-09-04 05:31:01 +00:00
wagic.the.homebrew
bc3250fadc - Added 493 missing cards in unsupported.txt, removed some duplicates from unsupported that have since then been coded
-- Most of the added cards are from recent sets and unhinged.
- removed Cinder Seer from Borderline as it seems a more accurate version is in crappy


*** Removed from unsupported.txt because they also exist in other files:
Ancient Ooze was in supported files but also in unsupported ones
Blood Moon was in supported files but also in unsupported ones
Custody Battle was in supported files but also in unsupported ones
Deglamer was in supported files but also in unsupported ones
Flourishing Defenses was in supported files but also in unsupported ones
Fylgja was in supported files but also in unsupported ones
Glowering Rogon was in supported files but also in unsupported ones
Magus of the Unseen was in supported files but also in unsupported ones
Mana Chains was in supported files but also in unsupported ones
Mana Echoes was in supported files but also in unsupported ones
Melira's Keepers was in supported files but also in unsupported ones
Nullmage Advocate was in supported files but also in unsupported ones
Orim's Thunder was in supported files but also in unsupported ones
Overwhelming Instinct was in supported files but also in unsupported ones
Preeminent Captain was in supported files but also in unsupported ones
Protean Hydra was in supported files but also in unsupported ones
Renewing Touch was in supported files but also in unsupported ones
Renounce was in supported files but also in unsupported ones
Riptide Survivor was in supported files but also in unsupported ones
Rise from the Grave was in supported files but also in unsupported ones
Sky Hussar was in supported files but also in unsupported ones
Tatterkite was in supported files but also in unsupported ones
Tidal Warrior was in supported files but also in unsupported ones
Twigwalker was in supported files but also in unsupported ones
Wu Scout was in supported files but also in unsupported ones
2011-09-03 09:23:41 +00:00
guzhenjie1@gmail.com
79546bb00a Corrected Reality Spasm and Slithery Stalker.
Corrected name of Oros the Avenger and Teneb the Harvester in CMD card.dat
2011-09-02 13:18:11 +00:00
solo81@web.de
e296e0c381 Added 222 cards based on rev3869 (thanks to Zeth!) and months of play-testing.
Examples:

# COUNTER-MOVING CARDS #

[card]
name=Ghave, Guru of Spores
auto=counter(1/1,5)
auto={1}{C(1/1,-1),creature|mybattlefield}:token(Saproling,Creature Saproling,1/1,green)
auto={1}{S(creature|mybattlefield}:counter(1/1,1) target(creature)
text=Ghave, Guru of Spores enters the battlefield with five +1/+1 counters on it. -- {1}, Remove a +1/+1 counter from a creature you control: Put a 1/1 green Saproling creature token onto the battlefield. -- {1}, Sacrifice a creature: Put a +1/+1 counter on target creature.
mana={2}{B}{G}{W}
type=Legendary Creature
subtype=Fungus Shaman
power=0
toughness=0
[/card]

# IF...THEN #

[card]
name=Goblin Goon
auto=@each my attackers:if type(creature|opponentbattlefield)~morethan~type(creature|mybattlefield) then transforms((,cantattack)) ueot
auto=@each my blockers:if type(creature|opponentbattlefield)~morethan~type(creature|mybattlefield) then transforms((,cantblock)) ueot
text=Goblin Goon can't attack unless you control more creatures than defending player. -- Goblin Goon can't block unless you control more creatures than attacking player.
mana={3}{R}
type=Creature
subtype=Goblin Mutant
power=6
toughness=6
[/card]

[card]
name=Pulse of the Tangle
auto=token(Beast,Creature Beast,3/3,green)
auto=if type(creature|opponentbattlefield)~morethan~type(creature|mybattlefield) then moveto(myhand)
text=Put a 3/3 green Beast creature token onto the battlefield. Then if an opponent controls more creatures than you, return Pulse of the Tangle to its owner's hand.
mana={1}{G}{G}
type=Sorcery
[/card]

# MULTIKICKER #

[card]
name=Joraga Warcaller
auto=kicker counter(1/1,kicked)
kicker=multi{1}{G}
auto=thisforeach(counter{1/1.1}) lord(other elf|myBattlefield) 1/1
text=Multikicker {1}{G} (You may pay an additional {1}{G} any number of times as you cast this spell.) -- Joraga Warcaller enters the battlefield with a +1/+1 counter on it for each time it was kicked. -- Other Elf creatures you control get +1/+1 for each +1/+1 counter on Joraga Warcaller.
mana={G}
type=Creature
subtype=Elf Warrior
power=1
toughness=1
[/card]

# PROLIFERATE #

[card]
name=Contagion Clasp
auto=counter(-1/-1,1) target(creature)
auto={4}{T}:target(proliferation) proliferate
text=When Contagion Clasp enters the battlefield, put a -1/-1 counter on target creature. -- {4}, Tap: Proliferate. (You choose any number of permanents and/or players with counters on them, then give each another counter of a kind already there.)
mana={2}
type=Artifact
[/card]

# MULTI-TARGET #

[card]
name=Argothian Elder
auto={T}:target(<2>land) untap
text={T}: Untap two target lands.
mana={3}{G}
type=Creature
subtype=Elf Druid
power=2
toughness=2
[/card]

[card]
name=Aven Augur
abilities=flying
auto={S}:target(<upto:2>other creature) moveTo(ownerhand) myUpkeepOnly
text=Flying -- Sacrifice Aven Augur: Return up to two target creatures to their owners' hands. Activate this ability only during your upkeep.
mana={3}{U}
type=Creature
subtype=Bird Wizard
power=2
toughness=2
[/card]

[card]
name=Bone Harvest
target=<anyamount>creature|mygraveyard
auto=moveTo(mylibrary)
auto=@next upkeep:draw:1 controller
text=Put any number of target creature cards from your graveyard on top of your library. -- Draw a card at the beginning of the next turn's upkeep.
mana={2}{B}
type=Instant
[/card]

Test suite tests will follow on weekend.

Have fun!
2011-09-01 21:06:45 +00:00
guzhenjie1@gmail.com
67bbaa8f06 Corrected Hystrodon. 2011-08-25 12:14:30 +00:00
guzhenjie1@gmail.com
14bd7b7a24 Corrected Galepowder Mage. 2011-08-16 15:35:32 +00:00
guzhenjie1@gmail.com
b2f1252e50 Corrected Puresteel Paladin. 2011-08-11 15:44:17 +00:00
guzhenjie1@gmail.com
22305c2d27 Added missed subtype of Greatsword, Kite Shield and Swiftfoot Boots. 2011-08-05 16:47:23 +00:00
guzhenjie1@gmail.com
af18fb0172 Corrected mana cost of Personal Sanctuary. 2011-08-03 13:01:03 +00:00
omegablast2002@yahoo.com
a26125ee4c readded arbor elfs ability. 2011-07-26 17:23:01 +00:00
omegablast2002@yahoo.com
c1ac119af5 fixed dark depths with while tag. 2011-07-26 16:39:50 +00:00
omegablast2002@yahoo.com
1f049bdd0c caribou range fixed...typo in the cost...please test cards before adding them, it is very obvious that cards are being added without so much as testing their abilities when i have done 6 typo fixes since release...typos that deemed the card completely un-usable...such as caribou range which would sacrifice the enchantment if you wanted to gain a life. 2011-07-26 15:29:02 +00:00
omegablast2002@yahoo.com
8c99022deb corrected fresh meat, tho it still has a problem...currently we don't keep a count of token creatures that went to the grave...i might look into it later on, tho very very very few cards actually care about this....so if it requires too much code impact, then it will remain simply counting the cards which exist in the grave. 2011-07-26 15:22:42 +00:00
omegablast2002@yahoo.com
c52b8b6983 Reveillark fix...since apparently everyone is reporting this....
if you are going to use the trigger + ability from trigger effect...make sure you create the trigger before you remove the card from play...otherwise the trigger never gets a chance to see it's source leaving play.
2011-07-26 15:14:37 +00:00