Commit Graph

9767 Commits

Author SHA1 Message Date
jendave
33a83fd78f Modified doDrawback to use SVar for dX, for when the drawback has its own X. If "X" is used in the drawback number, it uses the nDB value passed to the method. If "dX" is passed, xCount is used to determine X, using the Count$ specified by "SVar:dX:___".
IN OTHER WORDS - Enables Cruel Bargain and Infernal Contract to be fully implemented.
2011-08-06 03:21:31 +00:00
jendave
bcd1a918b9 Modified spDrawCards to use SVar for X 2011-08-06 03:21:22 +00:00
jendave
ed4abaed2d - Refactored AddCounterFromCostOrEffect -> addCounterFromNonEffect. 2011-08-06 03:21:17 +00:00
jendave
08038c5480 - Resized picture of Booster Draft Deck Editor.
- Changed column sizes in Booster Draft Deck Editor (they are the same now as the regular deck editors).
2011-08-06 03:21:11 +00:00
jendave
cdef3774d2 - Fixed Elvish Fury buyback manacost. 2011-08-06 03:21:02 +00:00
jendave
207b570e42 Modified spDamageTgt to use SVar for X 2011-08-06 03:20:57 +00:00
jendave
05e7f6b69c - bugfixes 2011-08-06 03:20:48 +00:00
jendave
8a50154c4a Modified spPumpTgt to use SVar for X and Y variables 2011-08-06 03:20:39 +00:00
jendave
ddae9206cc - Removed Thwart from AI counterspell list (for some reason it is able to cast it without paying its manacost or bouncing any Islands).
- Fixed a bug with Nicol Bolas, Planeswalker sacrificing the player's Mana Pools. 
- Added Anowon, the Ruin Sage, Ruthless Cullblade, Celestial Colonnade, Stirring Wildwood, Creeping Tar Pit and Raging Ravine ("Whenever this creature attacks, put a
2011-08-06 03:20:29 +00:00
jendave
2378a6602e Added Negative math element to doXMath 2011-08-06 03:20:17 +00:00
jendave
8710b69d1f abPump[Tgt] now uses SVar for X and Y. 2011-08-06 03:20:12 +00:00
jendave
f62407afc5 Bug in getSVar/setSVar: contains -> containsKey. 2011-08-06 03:20:07 +00:00
jendave
256f78f64d - Fixed Amulet of Vigor (although I'm not sure about the order - e.g. Khalni Garden is played, the untap triggers will happen before the token hits play, is this correct?) 2011-08-06 03:19:58 +00:00
jendave
3b370e0086 - Added Amulet of Vigor.
- Fixed a potential bug with Kismet.
2011-08-06 03:19:48 +00:00
jendave
709714882f - Added Stoneforge Mystic. 2011-08-06 03:19:42 +00:00
jendave
4c9e0b0a5c - Added Dragonmaster Outcast and Death's Shadow. 2011-08-06 03:19:36 +00:00
jendave
7ccddefc0c - Fixed an issue with Timber Protector (Forests not losing Indestructible when one leaves play).
- Fixed some Doubling Season issues (Planeswalkers, Wither).
2011-08-06 03:19:30 +00:00
jendave
339bb6e9c9 - Fixed some bug I introduced by fixing Phyrexian Arena.
- Fixed the way Meloku the Clouded Mirror works (can choose a land to return now - even though it's still done during resolution of the spell), won't be able to play the ability if there are no controlled lands in play.
2011-08-06 03:19:23 +00:00
jendave
310073fd48 - New cards: Wasteland, Strip Mine, Stifle, Rebuild, Spell Pierce and Mystical Tutor
- Disabled blurred image and multipass resizing, should be faster to display images on slower computers
- Fix images download progress bar not updating
- Automatic date and revision in main.properties via SVN keywords $Date$ and $Revision$
2011-08-06 03:19:08 +00:00
jendave
35c06ce201 - Hopefully the AI will lose right away now after losing life into lethal levels from Phyr?\127exian Arena.
- Made a fix on Kiki-Jiki, Mirror Breaker: if it uses its ability on a stolen creature (Control Magic, Sower etc.), "leavesPlay triggers" should affect the correct player now (e.g. Meadowboon).
- Fixed Sower of Temptation: its ability will now trigger as it enters the battlefield. This allows for comboing with cards like Kiki-Jiki, Mirror Breaker.
- Added some new Worldwake cards: Avenger of Zendikar and Bestial Menace.
2011-08-06 03:18:59 +00:00
jendave
9ee2e83490 - Made some fixes on Leaf-Crowned Elder: it should allow the player to choose whether or not to play a Treefolk, and it will actually PLAY the card as opposed to just putting it onto the battlefield.
- Converted makeToken() in GameActionUtil.java.
2011-08-06 03:18:50 +00:00
jendave
d1676f0868 - Planeswalkers get counters as they enter the battlefield (necessary for Doubling Season).
- Sparkspitter tokens should have trample and haste now.
- Vanishing uses Time counters instead of Age counters now (not sure why they were age counters).
- Mass destroy effects (WoG, ...) will try to take out cards like Timber Protector LAST.
- Finished makeToken() in CardFactory_Creatures.java.
2011-08-06 03:18:43 +00:00
jendave
58c29c1f9d - Turned off sound by default.
- Turned on stop at EOT by default.
2011-08-06 03:18:34 +00:00
jendave
c051e92c27 - Fixed Water Elemental HQ pic link.
- Converted all token creation code in CardFactory_Lands.java and CardFactory_Planeswalker.java, and half of CardFactory_Creatures.java.
- Creatures that have "This creature attacks each turn if able" won't be forced to attack until the planeswalker attack phase (if one is in play on the AI's side). 
- Added Doubling Season (won't work yet for all cases, still have to convert all token creation code).
2011-08-06 03:18:27 +00:00
jendave
8ba0150404 Commented old KPump, PTPump, PTKPump, TgtKPump, TgtPTPump, TgtPTKPump keywords. 2011-08-06 03:18:14 +00:00
jendave
e13da9e38b Added keyword handler for SVar. 2011-08-06 03:18:10 +00:00
jendave
b521e9e0a9 Added HashMap for SVars and get/set for SVars. 2011-08-06 03:18:05 +00:00
jendave
6b250e062e - Added note to incarnations that they will slow down your computer when an Incarnation is placed in a graveyard.
- Added Incarnations for removal from GenerateConstructedDeck.java and GenerateConstructedMultiColorDeck.java.
2011-08-06 03:17:55 +00:00
jendave
d3c25cd91f Converted Gerrard's Command and Inspirit from hard-coded to keyword only. 2011-08-06 03:17:37 +00:00
jendave
9ae626e539 - Added Rofellos, Llanowar Emissary and it's LQ pic url.
- Added/Improved the setStackDescription for several of the life gaining spells.
2011-08-06 03:17:30 +00:00
jendave
5b0a00e9b0 - Small fix in Ability_Mana. 2011-08-06 03:17:08 +00:00
jendave
4070cc195e - Poison counters should reset correctly now in between games.
- Some more cleanups.
- Added Khalni Garden, Graypelt Hunter, Bojuka Brigand.
2011-08-06 03:17:03 +00:00
jendave
6057c3b8ff - If a Sower of Temptation leaves play, and the creature it stole was attacking, that creature will be removed from combat now.
- Added a makeToken method in CardFactoryUtil, and changed most token creation code in  to use this.
- Bunch of  cleanups.
2011-08-06 03:16:51 +00:00
jendave
a522c0d7bf - Cards like Priest of Titania, Gaea's Cradle and Serra Sanctum are keywordable, don't use the stack anymore and can be used directly when a spell/ability is being paid for.
The keywords would look like this: "tap: add {ManaSymbol} to your mana pool for each {Type} {on the battlefield / you control}."
- Face down cards should show "morph.jpg" on the full-size picture now (hiding its true identity).
- Right-clicking on an attacker during the Declare Attackers phase will untap and remove the attacker from combat.
2011-08-06 03:16:45 +00:00
jendave
9472cc88a7 Revision to spPumpTgt to support Count$ and Drawback$ 2011-08-06 03:16:36 +00:00
jendave
76ef2a0315 - Renamed StateBasedEffects into StaticEffects.
- Added Golem creature type to Darksteel Colossus.
- Fixed Maelstrom Pulse (should whipe out tokens with the same name now).
- Fixed a bunch of Cascade issues (some cards where not cascadable, hopefully I got all of them now).
- Added a couple of new cards from the new set: Loam Lion and Hada Freeblade.
2011-08-06 03:16:30 +00:00
jendave
94c511bed2 - Fixed Mold Adder 2011-08-06 03:16:18 +00:00
jendave
b6142f9234 - Fixed Drekavac. 2011-08-06 03:16:12 +00:00
jendave
465449c814 - Fixed Cumulative Upkeep code.
- Fixed a small bug with Fastbond (it would sometimes subtract more than 1 life).
- Fixed some big bugs with Fastbond, Exploration, Azusa, Lost but Seeking (computer won't be able to use them if it doesn't control them).
- AI should lose life when using Fastbond now.
2011-08-06 03:16:05 +00:00
jendave
a63d99da52 Added Scry text (and reminder) to getText() for Instants and Sorceries. 2011-08-06 03:15:54 +00:00
jendave
6da0ac6b9e - Black Lotus will get sacked before its ability resolves.
- Hopefully fixed Thopter Foundry for AI.
2011-08-06 03:15:49 +00:00
jendave
f3383fa8c4 In preparation for enhanced spPumpTgt spells, the following were added:
xCount(): MaxCMC - given a player zone, returns the highest Converted Mana Cost.
doDrawBack(): DamageTgtC - deals damage to the targeted creature.
2011-08-06 03:15:41 +00:00
jendave
221255765c The computer is thinking message has now been changed in both locations, ComputerAI_Input and ComputerAI_StackNotEmpty.java. 2011-08-06 03:15:36 +00:00
jendave
d8960be5fc - Propaganda effects only apply to creatures attacking a player, not planeswalkers. 2011-08-06 03:15:25 +00:00
jendave
71a02ab44d - Added Gatekeeper of Malakir. 2011-08-06 03:15:18 +00:00
jendave
b984859c77 Moved Cantrip check after sa.resolve().
Added Scry check after Cantrip check.
2011-08-06 03:15:10 +00:00
jendave
5851e04f01 Moved Cantrip check to after sa.resolve().
Added Scry check after Cantrip check.
2011-08-06 03:15:05 +00:00
jendave
afe8ef7842 Added support for the game action scry(Player, numScry) 2011-08-06 03:15:00 +00:00
jendave
fe1bbcb64d - Casting a Cascaded card is optional now.
- Added Intimidate keyword.
- Added Guul Draz Vampire, Bladetusk Boar.
2011-08-06 03:14:55 +00:00
jendave
2f1b65fa34 2011-08-06 03:14:42 +00:00