Commit Graph

336 Commits

Author SHA1 Message Date
jendave
3b5ad985b9 Added addDamage(player, source, damage)
Moved LifeLink check and Guilty Conscience check to addDamage
2011-08-06 03:22:38 +00:00
jendave
ed4abaed2d - Refactored AddCounterFromCostOrEffect -> addCounterFromNonEffect. 2011-08-06 03:21:17 +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
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
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
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
afe8ef7842 Added support for the game action scry(Player, numScry) 2011-08-06 03:15:00 +00:00
jendave
2f1b65fa34 2011-08-06 03:14:42 +00:00
jendave
abc48fa8c0 - Fixed Mutavault.
- After taking control of it, Elspeth's ult should correctly affect the controller's creatures now.
- Echoing Truth will remove tokens from the game, instead of destroying them.
2011-08-06 03:13:35 +00:00
jendave
12598c7088 - Made some more code cleanups and (small) performance improvements.
- Fixed Sarkhan Vol and Ajani Goldmane token controllership issues. Also fixed Ajani Goldmane?\127 lifegain after a different player takes control of it.
- Memnarch's first ability will put the Artifact type at the beginning of the type text (so "Artifact Planeswalker - Ajani" instead of "Planeswalker - Ajani Artifact").
- Planeswalkers with the same "subtype" should get destroyed correctly now if there are two or more in play, even if one of them got "Memnarched" into an artifact.
2011-08-06 03:13:21 +00:00
jendave
eae967c56c - Made many performance improvements (using FindBugs).
- Ability of Chainer, Dementia Master shouldn't be castable from hand anymore, also added ability text.
2011-08-06 03:12:56 +00:00
jendave
8c8950b151 - Fixed Lhurgoyf.
- Planeswalkers shouldn't get -1/-1 counters anymore if damaged by creatures with Wither.
- Added caching to large images (thanks to Nantuko, Snacko and Silly Freak for all of the help!), hopefully this will help with the memory leak problem.
2011-08-06 03:12:13 +00:00
jendave
c6e7e5c045 - Fixed Ajani Vengeant (second ability).
- Added some tweaks to AI counterspells. 
- Added various Look and Feel options (for some of them, make sure to toggle on options-> use LAF fonts). When using this SVN version, be sure to add all external JAR files found in /res/lib to your project. Do this by right clicking on your project in the Package Explorer of Eclipse. Then go to Build Path -> add External Archives...-> add the JARs in /res/lib.
2011-08-06 03:11:11 +00:00
jendave
df559b9abf - Fixed Dakmor Ghoul CIP text.
- Added Chronatog, Kismet, Frozen AEther, Loxodon Gatekeeper, Gush.
- Removed warnings (mostly just by adding a @SuppressWarnings("unused"); ) from the JLayer libs.
- Removed some old commented out code of cards that have been replaced by keywords.
- Boreal Centaur and Knight of the Skyward Eye abilities can only be used once per turn now.
2011-08-06 03:08:57 +00:00
jendave
6fa2eea57f - Added The Tabernacle at Pendrell Vale and Magus of the Tabernacle.
- Fixed Bog Initiate Manacost.
- Some slight performance improvements for displaying cards (not sure if it helps much).
- A bunch of Adarkar Valkyrie bugs should be fixed now.
2011-08-06 03:06:38 +00:00
jendave
b66c63bdce - Untap should happen before the AIs upkeep phase now (I hope changing that didn't break anything).
- Added Echo, Upkeep and Cumulative Upkeep functionality. 
- Thelonite Hermit should also give +1/+1 to creatures with Changeling.
- Added Donate, Illusions of Grandeur, Drifting Djinn, Drifter il-Dal, Karmic Guide, Avalanche Riders, Basalt Gargoyle, Keldon Vandals, Vaevictis Asmadi, Palladia-Mors, Nicol Bolas, Goblin Patrol, Goblin Marshal, Mogg War Marshal, Urza's Blueprints, Deranged Hermit, Winding Wurm, Vug Lizard, Viashino Outrider, Uktabi Drake, Thran War Machine, Tectonic Fiend, Simian Grunts, Shivan Raptor, Radiant's Dragoons, Pouncing Jaguar, Multani's Acolyte, Lightning Dragon, Herald of Serra, Henchfiend of Ukor, Goblin War Buggy, Cradle Guard, Citanul Centaurs, Albino Troll, Acridian.
2011-08-06 03:05:59 +00:00
jendave
7ce6d0bb3c - Fixed AEther Web and other Auras with Flash (it was actually possible to cast them as they were in play already - getting infinitely more copies).
- Fixed Shadowmage Infiltrator, Thieving Magpie, Lu Xun, Scholar General, Augury Adept, Hypnotic Specter, (when control changes, the correct player should draw/discard cards).
- Fixed a bug where lands could be played with other spells/abilities on the stack.
2011-08-06 03:05:28 +00:00
jendave
c80fa9b374 - Radiant, Archangel is a 3/3 now.
- Discarding when controlling Necropotence should exile the card.
- Fixed a bug in the combat code where if a creature has received equal to its toughness, it will die no matter what.
- Umezawa's Jitte should trigger now when attacking a planeswalker.
- Added Pit Scorpion and Serpent Generator.
2011-08-06 03:04:18 +00:00
jendave
5952b70814 Bridge from Below added. 2011-08-06 03:04:02 +00:00
jendave
3762b14ca0 - Phytohydra should be fixed.
- Lands shouldn't be playable at opponent's EOT anymore.
- Checking attack triggers should happen only once, after all attackers have been declared.
- Added Goblin Piledriver, Flame Rift, Spectral Bears, Spectral Force, Pianna, Nomad Captain, Crypt Cobra, Swamp Mosquito, Suq'Ata Assassin.
- Fixed a bunch of bugs with Mox Diamond.
- Guiltfeeder should only trigger when it's unblocked (previously it would trigger when trampling over also). 
- Fixed Elvish Piper (not sure how it broke?).
- Added Poison Counters. 
- AI shouldn't play Cognivore, Terravore, Cantivore, Magnivore, Mortivore anymore if there are no cards in any graveyard keeping them alive.
2011-08-06 03:03:43 +00:00
jendave
12ee61ea02 Prowess of the Fair added. 2011-08-06 03:03:30 +00:00
jendave
7af3549c79 -Small fix in Riding the Dilu Horse.
-Cycling/Transmute/... + future other "hand abilities" should work on lands now.
-Fixed a lot of bugs in the combat code.
-Added Lichentrope, Phytohydra and Callous Giant.
2011-08-06 03:00:41 +00:00
jendave
ed83d3132d - Major combat code rewrite, added Swans of Bryn Argoll and Dromad Purebred.
- Exploration / Fastbond effects shouldn't carry over anymore.
- Vendilion Clique CIP ability should work now.
- AI playing Flight or Launch shouldn't target creatures with flying anymore.
- Small fix to Dovescape.
- Needlestorm, Oros, the Avenger, Incendiary Command and Spitting Spider shouldn't be able to damage creatures with protection anymore.
- Timber Protector should work correctly now.
2011-08-06 02:58:04 +00:00
jendave
748632dc98 - Yet another fix to the Mill code :) 2011-08-06 02:53:56 +00:00
jendave
55a1e779fc - Fix to previously posted mill code.
- Triadasoul added Identity Crisis.
2011-08-06 02:53:50 +00:00
jendave
932f4a2b48 - Milling is a loss condition now (optionally).
- Fixed Emeria Angel (white birds instead of green ones).
- Added Triadasoul's Lobotomy.
2011-08-06 02:53:43 +00:00
jendave
ca510897b0 - Umezawa's Jitte is now Legendary, Auramancer a Wizard.
- Fixed an issue with the AI countering spells that trigger on cast (Sigil of the Empty Throne, Standstill, etc.).
- Timetwister shouldn't show up in both graveyards anymore.
- Figure of Destiny's 2nd and 3rd abilities should work if the creature has changeling, plus a check for the prerequisites is performed on resolution.
- Fixed Dryad Arbor / Mutavault / Mishra's Factory summoning sickness issues.
- Fixed Umara Raptor manacost.
- Added Vasiliy's Deck editor filter, and it works now! It's much easier to find cards now with the card text search feature.
- Fetching Bound in Silence with a rebel should be allowed to be attached to any creature.
- Demonic Tutor shouldn't be castable with other spells on the stack anymore.
- Added a property for token images (currently set to 'pics/tokens' - just set to 'pics' to keep it the way it always was).
2011-08-06 02:51:31 +00:00
jendave
25e1d3656d - Added Time Walk! Also some other similar cards.
- Fixed Sluggishness.
- Fixed an issue with Planeswalkers where their abilities can be used when there are other abilities on the stack (even during AIs turn).
- Added Ajani Vengeant.
- Fixed Strangling Soot bug.
2011-08-06 02:50:40 +00:00
jendave
7a697458e2 - Add?\127ed Spell Snare, Jace Beleren, Timber Protector, Viridian Zealot, ...
- Added Vasiliy's deck download option.
- Enchant creature Auras will get destroyed if the permanent which they enchanted ceases to be a creature (eg. Mishra's Factory).
- Fixed Mishra's Factory ability text.
- Removed Legendary type of all planeswalkers, and added in code to destroy planeswalkers if there are multiple of the same subtype in play.
2011-08-06 02:50:32 +00:00
jendave
7dbe8ea57a Added Input stackability.
Fixed Angle of Despair to say What you're going to do to the "target permanent",
Drekvac from "Discard a card, then sacrifice Drekvac if discarded card was a creature" to original "you may discard noncreature card. If you choose not to(buttonUtil.enableOnlyCancel), sac Drekvac"
Fixed mana curve smoothing: now AI land smoothing will simply print an error line and continue if there isn't enough land to smooth.
2011-08-06 02:47:39 +00:00
jendave
19dae61e1e Due to unforseen complications, the Ability_Triggered class has been deactivated, however, InputControl was modified to delay any stacked inputs via stack(So it is possible to use two targeted ETFs with DotH or make use of LTF of creatures you sacrifice as part of a cost. 2011-08-06 02:47:32 +00:00
jendave
4521c5da54 Added a few "sacrifice creature" cards (Diabolic Edict, Chainer's Edict, Innocent Blood, ...). 2011-08-06 02:47:16 +00:00
jendave
2c739ecf24 Some generic fixes, also: - Added "Whenever *any text goes here* put into a graveyard from the battlefield,*any text goes here*" keyword. It doesn't do anything, but it notifies the program that the card triggers on whenever a card gets put into a graveyard from the battlefield.
- AEther Spellbomb should be fixed.
2011-08-06 02:46:47 +00:00
jendave
ad50e3f2eb - Changed "This card does not untap during your untap phase." keyword to "This card doesn't untap during your untap step.", and added "This card doesn't untap during your next untap step." keyword.
New cards: Dingus Egg, Dingus Staff, Proper Burial, Moonlit Wake, Fecundity, Goblin Sharpshooter, Dauthi Ghoul, Eternity Snare, Elvish Hunter (not implemented yet).
2011-08-06 02:46:32 +00:00
jendave
00f92575d8 Small update, Knighthood, Levitation (new cards in cards.txt I forgot to add), card pic URLs in card-pictures.txt and Volrath's Stronghold's ability manacost fix, AI_Discard() fix. 2011-08-06 02:44:31 +00:00
jendave
386669b84e Huge update to forge's structure:
everything from the default package moved to package forge. the default package contains classes Deck and QuestData_State to keep compatibility with old files that store serialized objects of these classes

if you find other classes that are stored in the res directory through serialization, create a class for it in the default package or tell me.

about QuestData_State: i'm getting a NullPointerException when trying to create/resume quest. Maybe the quest files on SVN are simply out of date. otherwise, that seems hard. easy fix would of course be to replace null by a new Map
2011-08-06 02:43:59 +00:00