Commit Graph

1752 Commits

Author SHA1 Message Date
omegablast2002@yahoo.com
b978baa9c8 added Brace For Impact and Telekinesis 2011-02-15 12:18:20 +00:00
guzhenjie1@gmail.com
8e24e86b0f Fixed Avenger of Zendikar:
auto=@movedTo(land|myBattlefield):may counter(1/1) all(plant)
 ==> 
auto=@movedTo(land|myBattlefield):may counter(1/1) all(plant|myBattlefield)
2011-02-15 12:12:10 +00:00
guzhenjie1@gmail.com
b3468782f1 Changed Arcane Laboratory and Rule of Law based on r3125.
oneboth => auto=maxCast(*)1 auto=maxCast(*)1 opponent

Changed name of Oriss, Samite Guardian in FUT _card.dat:
primitive=Oriss, Samite Guardian
 ==> 
primitive=Oriss Samite Guardian
2011-02-14 11:32:18 +00:00
omegablast2002@yahoo.com
e92e96a375 Fallen Askari missing cantblock.... 2011-02-13 15:37:51 +00:00
omegablast2002@yahoo.com
935fe12672 pentarch paladin was missing cost for abilities...thanks kf1 2011-02-13 14:35:54 +00:00
wagic.the.homebrew@gmail.com
8eac9c587e Erwan
- added maxCast and maxPlay abilities, this deprecates the following abilities: nospells,nocreatures,onlyonespell,land
I usually don't like to deprecate abilities, but the existing ones, despite having easy to remember names, were really not flexible enough.

If you want to use these old keywords, instead use:
-- nospells  =>  maxCast(*)0
-- onlyOneSpell => maxCast(*)1
--nocreatures => maxCast(creature)0
--land:1 => maxplay(land)+1

note maxPlay and maxCast. They follow similar rules, but maxPlay monitors the number of cards that are going on the Battlefield, while maxCast monitors the stack. In most cases, maxCast should be the one to use, but lands are a special case because they go directly to play.

I unfortunately cannot guarantee I didn't break anything, especially in the AI, but the test suite passes ,and I added a few additional tests yesterday and today, to feel more confident about the change.

next step is removing the creatures keywords that do the same kind of thing (cantcast, etc...) and replace them with maxCast
2011-02-13 08:01:13 +00:00
guzhenjie1@gmail.com
2165a38d3b Fixed following cards:
1. Fire Dragon(It has same problem as unchanged Honden Of Infinite Rage, using new code "type:" to fix it.)
auto=foreach(mountain|myBattlefield) damage:1 target(creature) oneshot
 ==> 
auto=damage:type:mountain target(creature)

2. Burden of Greed
auto=foreach(artifact[tapped]|opponentBattlefield)damage:1
 ==> 
auto=foreach(artifact[tapped]|opponentBattlefield) life:-1 opponent
2011-02-13 05:57:36 +00:00
omegablast2002@yahoo.com
27f941e939 updated whetwheel 2011-02-12 20:34:50 +00:00
omegablast2002@yahoo.com
144ed28235 add Decomposition... 2011-02-12 17:37:14 +00:00
omegablast2002@yahoo.com
45cd30d367 added blinkmoth urn 2011-02-12 17:05:58 +00:00
wagic.the.homebrew@gmail.com
60017a6652 Erwan
- replaced variables canPutLandsIntoPlay and landsPlayerCanStillPlay with a PlayRestrictions class.
- Added  seenThisTurn(TargetChooser * tc) in MTGGameZones, which allows to count how many cards matching a targetChooser have been in a given zone in the current turn. With minor work, this can probably be reused by the ability parser for some cards that need to count how many **** where played or put on the stack during a turn.
-- for example player->game->stack->seenThisTurn([put a TypeTargetChooser("creature") here]) would give you the number of creature spells cast by the player this turn.
- This is the first step of a refactor that aims at removing all the adhoc variables for "cant cast". I plan to get rid of the following variables in Player.h (and the associated code, which hopefully will become smaller):  
    int castedspellsthisturn;
    bool onlyonecast;
    int castcount;
    bool nocreatureinstant;
    bool nospellinstant;
    bool onlyoneinstant;
    bool castrestrictedcreature;
    bool castrestrictedspell;
    bool onlyoneboth;
    bool bothrestrictedspell;
    bool bothrestrictedcreature;

They will be replaced by the PlayRestrictions system, and hopefully I'll have time to update the parser to make this more generic as well.
My initial goal with this change was to move the limit of 1 land per turn outside of the code, and make it an external rule in Rules/mtg.txt. I have yet to do it.
2011-02-12 16:31:07 +00:00
guzhenjie1@gmail.com
75718e28f8 Fixed Goldmeadow Lookout:
auto={W}{T}{discard(*|myhand)}:token(130311)
 ==> 
auto={W}{T}{discard(*|myhand)}:token(139397)
2011-02-12 14:39:23 +00:00
solo81@web.de
9500b0eb4b Added Rashka the Slayer. 2011-02-11 22:42:06 +00:00
omegablast2002@yahoo.com
32873bd4d0 added river of tears 2011-02-11 21:35:17 +00:00
guzhenjie1@gmail.com
61186347e5 Fixed Godless Shrine and Contested War Zone.
Thank you for Zeth's help and support!
2011-02-11 13:40:23 +00:00
omegablast2002@yahoo.com
201d096d24 mr big pointed out that the order of the abilities on Mayael's Aria was incorrect, and it does make a huge difference, it can mean the difference between a win or lose. 2011-02-10 19:59:29 +00:00
omegablast2002@yahoo.com
61e14f5b68 added Serra Inquisitors,Dwarven Soldier,Amphibious Kavu, fixed contested war zone 2011-02-10 19:51:13 +00:00
guzhenjie1@gmail.com
e3ac27bc30 Fixed Aura Extraction:
auto=moveTo(ownerhand)
 ==> 
auto=moveTo(ownerlibrary)
2011-02-10 13:10:19 +00:00
omegablast2002@yahoo.com
8ab65b234b updated the shrine cycle to use type: variable
ei:infinate of horden rage bug...it was the same bug as halimar used to have.
2011-02-10 12:07:11 +00:00
omegablast2002@yahoo.com
4bf72efaac Obelisk of Alara was missing the word "token for its *cough cough *workaround *cough cough* 2011-02-10 12:00:49 +00:00
omegablast2002@yahoo.com
b728a81144 journey to nowhere was sending it target to exile, then trying to blink it... 2011-02-10 11:54:56 +00:00
omegablast2002@yahoo.com
2866db0229 fixed line errors, report in r591 please confirm and close ticket 2011-02-09 15:21:24 +00:00
omegablast2002@yahoo.com
d336f921d7 added Progenitus and Splinter Twin 2011-02-09 09:48:04 +00:00
solo81@web.de
75e34d9012 Added Ghost Town. 2011-02-08 23:27:26 +00:00
solo81@web.de
adaa589e93 Fixed issue358.
New code for Paralyze uses "teach(...)":

[card]
name=Paralyze
target=creature
auto=tap
auto=doesnotuntap
auto=teach(creature) {4}:untap myUpkeepOnly
text=Enchant creature -- When Paralyze enters the battlefield, tap enchanted creature. -- Enchanted creature doesn't untap during its controller's untap step. -- At the beginning of the upkeep of enchanted creature's controller, that player may pay {4}. If he or she does, untap the creature.
mana={B}
type=Enchantment
subtype=Aura
[/card]
2011-02-08 23:03:43 +00:00
omegablast2002@yahoo.com
67cdb895b9 removed an incorrect line from Concordant Crossroads 2011-02-08 15:15:25 +00:00
omegablast2002@yahoo.com
39e10dd088 updated clockworks, also corrected a few that were removing the wrong type of counter during combat, they come in with 1/1 counters and were removing 1/0 counters, which was wrong. 2011-02-08 15:13:12 +00:00
omegablast2002@yahoo.com
d852486355 Venerated Teacher was set to 1 counter, should have been 2...all this time i thought that it was a little underpowered then normal. 2011-02-08 12:23:59 +00:00
guzhenjie1@gmail.com
4196754abc Fixed Allay, Glissa, the Traitor and Kuldotha Forgemaster was reported in forum. 2011-02-08 10:07:04 +00:00
guzhenjie1@gmail.com
b1ae9bf548 Fixed Melt Terrain:
mana={1}{R}{R}
 ==> 
mana={2}{R}{R}
2011-02-07 15:07:54 +00:00
guzhenjie1@gmail.com
b0a370c1b7 Fixed following cards reported by ph34rbot in forum:
1. Blightwidow
2. Bonehoard
3. Crush
4. Darksteel Myr
5. Revoke Existence
2011-02-07 10:50:36 +00:00
guzhenjie1@gmail.com
3eee274726 Deleted carriage-return between Myr Sire and Myr Turbine:
[/card]

[card]
 ==> 
[/card]
[card]
2011-02-06 22:47:38 +00:00
omegablast2002@yahoo.com
230edd917c did away with the "fading" workaround... 2011-02-06 18:21:25 +00:00
omegablast2002@yahoo.com
26b1cd2c34 add mutavault 2011-02-06 16:43:58 +00:00
omegablast2002@yahoo.com
a08729d7e8 a little more {s( to {discard( cost clean up 2011-02-06 16:08:08 +00:00
omegablast2002@yahoo.com
ca15d579d1 updated alot of cards using {S(*|myhand)} as "discard a card" to the support i added a while ago, targetted discard cost...{discard(*|myhand)} 2011-02-06 15:57:06 +00:00
omegablast2002@yahoo.com
5ac735c2f5 updated Fauna Shaman to use {discard(blah)}: cost..... 2011-02-06 15:41:09 +00:00
guzhenjie1@gmail.com
a717bae839 Added "oneshot" code for cards with "Champion a creature" ability:
Boggart Mob
Changeling Berserker
Changeling Hero
Changeling Titan
Lightning Crafter
Mistbind Clique
Nova Chaser
Supreme Exemplar
Unstoppable Ash
Wren's Run Packmaster
2011-02-06 11:39:57 +00:00
omegablast2002@yahoo.com
a01898436b changed the order of abilities on a couple cards..
general tip on getting ai to use an ability on a card.
titan forge for exsample
[card]
name=Titan Forge
auto={3}{T}:counter(0/0,1,Charge)
auto={T}{C(0/0,-3,Charge)}:token(Golem,Artifact Creature Golem,9/9)
text={3},{T}: Put a charge counter on Titan Forge. -- {T}, Remove three charge counters from Titan Forge: Put a 9/9 colorless Golem artifact creature token onto the 
battlefield.
mana={3}
type=Artifact
[/card]

with the counter ability above the counter cost ability, ai will rarely ever use the titan forge to make a token.
however if you change the order around, ai will see the token ability first...then if it can afford it then it will make a token.
2011-02-05 14:49:40 +00:00
omegablast2002@yahoo.com
86308a4acb corrected titan forge, it was "lol" incorrect. it was basically "put a charge counter on titan forge, put a 9/9 in play" 2011-02-05 10:52:10 +00:00
omegablast2002@yahoo.com
23fc40895d updated vanishing creatures to use new vanishing...auto=vanishing:number 2011-02-03 14:18:10 +00:00
omegablast2002@yahoo.com
22adbe4ab7 i updated this test since i updated corveous dragon to use sacrifice keyword...the test was putting him in play first, which resulted in instant sacrifice...moved him to be the last "inplay:" card 2011-02-03 13:04:37 +00:00
guzhenjie1@gmail.com
cd43d75c88 Fixed the Kor Hookmaster:
auto=choice target(creature) tap && frozen
 ==> 
auto=choice target(creature|opponentbattlefield) tap && frozen
2011-02-03 05:44:54 +00:00
guzhenjie1@gmail.com
049bee044d Fixed the following cards reported by ph34rbot in forum:
Sphere of the Suns
Turn the Tide
Vedalken Infuser
Viridian Corrupter
2011-02-03 04:53:29 +00:00
omegablast2002@yahoo.com
5c9b1d03a9 found these newly codable cards while scanning through the todo.
ring of renewal
reckless embermage
Rock Hydra
Roiling Terrain
Ronin Warclub
Runed Stalactite
Sabertooth Alley Cat
Scythe of the Wretched
Security Detail
Sewers of Estark
Sosuke's Summons
Soul Collector
Stasis Cell
Steal Strength
Takenuma Bleeder
Tetravus
Thornbite Staff
Tolarian Entrancer
Trap Digger
2011-02-03 03:54:28 +00:00
omegablast2002@yahoo.com
de60908836 Psychotrope Thallid removed from todo, its already been added 2011-02-03 00:27:04 +00:00
omegablast2002@yahoo.com
2c41ec0f28 removed Psychic Overload from todo 2011-02-03 00:23:33 +00:00
omegablast2002@yahoo.com
318eaf3959 added Psychic Overload 2011-02-03 00:23:16 +00:00
omegablast2002@yahoo.com
5be49a1857 mystifying maze had a typo 2011-02-03 00:14:17 +00:00
omegablast2002@yahoo.com
4ff2bd9b95 added:
Word of Seizing
Wipe Away
Take Possession
Sulfur Elemental
Sudden Shock
Sudden Death
Stonewood Invocation
Krosan Grip
Extirpate
Celestial Crusader
Kaijin of the Vanishing Touch
2011-02-03 00:04:42 +00:00