Commit Graph

28 Commits

Author SHA1 Message Date
jendave
936ee0bcde - Changed a bunch of things in the checkDeclareBlockers code (for some reason it gets called multiple times). 2011-08-06 03:42:20 +00:00
jendave
f91467f172 fixed bug with missing images in the deck editor. small images don't show any more on mouse over 2011-08-06 03:28:37 +00:00
jendave
c595bca3db Fixed the token image bug in ImageCache
Changed CardDetailPanel to display all the info in separate lines
added support for multiselect dialogs in Display, adapted it in Devour
2011-08-06 03:27:22 +00:00
jendave
e6fcccea92 Code cleanup:
-removed obsolete image-related classes
-resolved all warnings in the forge packages
2011-08-06 03:26:49 +00:00
jendave
c4e118f5f2 minimal nonfunctional change 2011-08-06 03:25:27 +00:00
jendave
7c23c0bb3f Big change that should solve the memory leak
-replaced the old ImageCache class with ImageCache2
-extracted the card picture- and detail code from GuiDisplay/DeckEditor into separate classes (in forge.gui.game). therefore, CardDetailUtil and forge.CardPanel were deleted. GuiDisplayUtil is no longer used to create the card panels.

TESTS:
-confirmed all changed GUIs (but the quest deck editor - changes are the same as normal deck editor) to show details and pictures.
-I played a game with reduced heap size (-Xmx200M). Occasionally the image cache size shrinked along with the used memory.
-In a game without reduced heap size (memory usage ~500M, over 1000 cached images), i noticed slowdown when some images were missing.
-I noticed the stack elements now having a border with the card's color; this doesn't hurt IMO.

NOT WORKING
I wasn't able to adapt one thing: GUI_PictureHQ, i just didn't know what it does. for everything else to work, some code sections were commented out and tagged with "TODO reenable"
2011-08-06 03:25:05 +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
254944dc9d - Fixed Karmic Guide.
- Eviscerator should only be played by the AI if his lifetotal is larger than 7. 
- Fixed Merfolk Sovereign AI targeting.
- Fixed Sarkhan Vol second ability. 
- Added some code to Knight of the Reliquary which should make it attack more often.
2011-08-06 03:11:35 +00:00
jendave
9f3fdf429f - Fixed Pit Scorpion.
- Fixed some of the "Sacrifice a creature" spells ("destroy" effects would sometimes not happen). 
- Added a few cards: Propaganda, Ghostly Prison, Windborn Muse, Arctic Nishoba, Peacekeeper, Marsh Viper.
- Yet another fix to Force of Will.
2011-08-06 03:10:05 +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
9b23d90ec2 - Gaining control of a creature equipped with Umezawa's Jitte and attacking with it shouldn't crash the game anymore. However, if you use this on the AI, you can use its abilities (gain life ability will give the AI life though).
- Added some kind of caching algorithm, hopefully it will actually make a difference.
- Rebel / Merc searches shouldn't fetch non-permanents (with Changeling) anymore.
2011-08-06 03:05:49 +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
e98cfe0f20 - Treva, the Renewer, Rith, the Awakener and Oros, the Avenger are usable by the AI now, and fixed a bug involving Control Magic and either of these cards. 2011-08-06 03:02:29 +00:00
jendave
17e08af9ec - Added a small fix for Scion of Oona (should pump other Scions correctly now). 2011-08-06 03:01: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
006b514e00 - Umezawa's Jitte +2/+2 ability shouldn't be targeted anymore.
- Added Chainer, Dementia Master, Vorosh, the Hunter, Rith, the Awakener.
- AEther Web should be castable at any time now (flash).
- AI should be able to use Tezzeret's first ability now.
2011-08-06 02:57:04 +00:00
jendave
79746b6d94 - Added Meddling Mage, Gaddoc?\127k Teeg and Iona, Shield of Emeria.
- Changed spDamageCP and spDamageP to spDamageTgtCP and spDamageTgtP in cards.txt.
2011-08-06 02:56:01 +00:00
jendave
94b9177628 - Garruk Wildspeaker shouldn't be able to target untargettable lands anymore.
- Fixed a few issues in the GUI code, where Moxes that turn into creatures would show up twice.
- Adun Oakenshield's ability shouldn't be playable from hand anymore.
- Added Tezzeret the Seeker.
2011-08-06 02:51:54 +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
9ba9b33126 - Fixed Rebel/Merc fetch, can only get permanents now.
- Added the rest of the Harbingers.
- Added Meekstone and Qasali Pridemage.
2011-08-06 02:50:22 +00:00
jendave
0864c6050f - Fixed Loxodon Hierarch.
- Added Kaervek's Spite and Academy Rector (to complete the Barren Glory combo).
2011-08-06 02:49:39 +00:00
jendave
5725f5a282 Added Seal of Fire, Seal of Cleansing, Seal of Primordium. 2011-08-06 02:48:47 +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
5c6efdf625 some small fixes and tweaks regarding the property system 2011-08-06 02:45:46 +00:00
jendave
f04ab6733c 11/01 build - small updates, basically to stay up-to-date with the latest beta. 2011-08-06 02:45:06 +00:00
jendave
d4a37d17ab first draft of Gui_DeckEditorNew, including entries in NewConstants and res/gui
no functional change to the running program, nothing working yet...
2011-08-06 02:38:55 +00:00
jendave
7327d6c499 Moved some files from /src into /, including forge.properties and the res folder
changed the output folder to bin
2011-08-06 02:38:31 +00:00