myk
c0c541832e
add pack filter in spell shop
2013-02-07 10:50:38 +00:00
Maxmtg
e0a599fcbe
getAvailableMana and mapManaSources accept any player as parameter, since AI wants to evaluate player's mana he might use to pump creatures
2013-02-07 09:15:09 +00:00
moomarc
32e0374166
- Added a deck editor icon for products. Hooked up the icon in FSkin and added a commented out basic hook for it in SEditorUtil
2013-02-07 07:29:17 +00:00
moomarc
aceff2002d
- Added an ai check svar to Sheltered Valley so that it won't play it if it already has another one on the battlefield
...
- AiController.getLandsToPlay will now check NeedsToPlayVar and filter out relevant cards
2013-02-07 05:47:08 +00:00
Sol
5a9838c6d1
- Converting Sheltered Valley to script (no AI exists in hardcode, but we probably should an add an SVar to not play this if that player already controls one of these)
2013-02-07 04:22:44 +00:00
myk
f89efa6ae4
- reshow selected card when the listbox regains focus
...
- show current card /after/ the events stop firing so the card data doesn't get overwritten
2013-02-07 01:41:48 +00:00
myk
f552ffbed6
- add ctrl(cmd)+enter hotkey to auto button in ability chooser dialog
...
- scroll game log to top on display
2013-02-07 00:30:56 +00:00
myk
480124f407
- allow highlighting and copying of match log in ViewWinLose
...
- make saving layouts thread safe
2013-02-06 23:38:35 +00:00
Maxmtg
17b42ebf83
SpellAbility: Intrinsic/Extrinsic types were never assigned (removed)
...
setPaidList, beforePayManaAI, setAllReplacingObjects, hasReplacingObject, wasCancelled were never used (removed)
reduced visibility of setManaPart,
finalized setReplicateManaCost, setXManaCost, setIsMultiKicker, setIsReplicate, setIsCycling, setConditions, (set/add)OptionalAdditionalCosts since they were called by CardFactoryUtil only => all removed from WrappedAbility.java
2013-02-06 21:53:37 +00:00
Maxmtg
2075591430
SpellAbility: afterResolve and afterPayMana were removed, since they were not used.
...
little refactoring for global ruin
CardEdition: remove unused ctor
2013-02-06 21:13:10 +00:00
myk
987af8ba4f
set button focus after match; this also gets the game log scrolling properly
2013-02-06 20:23:25 +00:00
myk
22859cec6c
- allow spacebar to move cards in DualListBox and enter to select the OK button
...
- make color of listbox selection depend on listbox focus, not cell focus
- avoid NPE when attempting to start a challenge when there isn't one to start
2013-02-06 19:59:37 +00:00
myk
f7001a17f2
differentiate item hilight when a FList listbox has lost focus from when the listbox is selected
...
ensure the CardListViewer always appears in the center of the screen
2013-02-06 19:41:48 +00:00
Sloth
dae7d2f110
- Fixed Deathpact Angel.
2013-02-06 18:54:29 +00:00
myk
4bfaa9fcb1
move type parsing from private constructor to reader class; add comment on purpose of 2-letter codes
2013-02-06 18:11:43 +00:00
myk
71624be223
make set chooser dialog overlay-based instead of JDialog-based
2013-02-06 17:03:26 +00:00
moomarc
a81f97ae92
- Added Skill Borrower
2013-02-06 14:07:56 +00:00
Sloth
a942894fd7
- Fixed AI ignoring "DiscardValid" parameter.
2013-02-06 13:52:30 +00:00
Sloth
6777f40bd1
- Fixed Haste on suspended creatures.
2013-02-06 13:40:42 +00:00
moomarc
0461c169f4
- Improved Sedris, the Traitor King's script to better handle the exile at next EOT
2013-02-06 13:31:36 +00:00
Chris
2d2a317772
- Added the recent commit logs to changes.txt. Preparing for the snapshot build release.
2013-02-06 12:56:30 +00:00
moomarc
1b3110ee7c
- Added Sedris, the Traitor King
2013-02-06 12:51:23 +00:00
RumbleBBU
458c879343
Minor technical improvement to a check in BoosterUtils.java.
2013-02-06 12:06:30 +00:00
myk
78fed8fede
simplify and theme choose sets dialog
2013-02-06 11:54:06 +00:00
RumbleBBU
fa7cfb3c84
The Very Hard Jamuraa decks can now occasionally (rarely) give you special extra rewards.
2013-02-06 11:39:12 +00:00
myk
e000e107e3
add set type information to setdata.txt and store it via CardEdition
2013-02-06 10:36:29 +00:00
Maxmtg
e01a5af4b2
GameAction divided into 2 parts: original keeps cards' zone transitions, GameActionPlay.java holds methods for playing spells (mostly used by human player I guess)
...
in ComputerUtil demanded player to be AiPlayer for playeing spells
2013-02-06 09:35:27 +00:00
moomarc
2e421729f9
- Fixed Krosa Chaos trigger
2013-02-06 09:34:29 +00:00
myk
29564f37d7
ensure stats labels in deck editor are shown at the correct height on large displays
...
this works around a quirky interaction between WrapLayout and MigLayout that was causing interior cells to be properly resized but the cells surrounding them would not be, resulting in widgets that would be too large or too small for their unupdated containing cells
2013-02-06 09:19:56 +00:00
Maxmtg
ba80f2126d
moved GameAction & its util class to forge.game
2013-02-06 07:06:58 +00:00
Maxmtg
7e804867de
missing HumanPlayer.java for commit 19420
2013-02-06 06:47:16 +00:00
Maxmtg
cb1793eddf
player.isHostileTo() renamed to more correct 'isOpponentOf()'
2013-02-06 06:41:51 +00:00
Maxmtg
9cd0afa0d8
CardEdition: removed ctor overload and made it private (editions must not be created by other code but nested Reader class anyway)
...
Player: isComputer and isHuman methods redefined as getType() == PlayerType(computer/human), no overloads needed in derived classes
2013-02-06 06:34:27 +00:00
moomarc
53635ddc1a
- Cunning Giant will now interact correctly with planeswalkers
2013-02-06 06:03:50 +00:00
Maxmtg
d3bb37a368
Methods to test a string against a valid card type moved to forge.CardType
...
CommonDrawback: wrote in a single line the complicated chkAIDrawback method
removed unused imports
CardUtil.getRandom replaced with Aggregates.random
getReflectableMana uses Set as collection, so it does not have to check for duplicates before adding new items.
united two CMC calculation methods (one was getCMC from card that read characteristics while other took more factors into account)
2013-02-05 20:51:01 +00:00
Sloth
2ad0bae9f7
- Fixed CostTapType hanging when X=0.
2013-02-05 19:21:38 +00:00
Maxmtg
58fa5b34ea
Added AIPlayer parameter to doTrigger and chkAIDrawback
2013-02-05 19:18:31 +00:00
Sloth
8ba3ad5b90
- Fixed Assemble the Legion.
2013-02-05 19:06:57 +00:00
moomarc
b6236a551f
- Made sure Cunning Giant's replacement effect (for now) only triggers if it wasn't blocked, not also if it tramples over something.
2013-02-05 15:16:57 +00:00
moomarc
145b10596c
- Added Cunning Giant (will convert to trigger if necessary)
2013-02-05 14:55:01 +00:00
Chris
e9739d1428
- Added the recent commit logs to changes.txt. Preparing for the snapshot build release.
2013-02-05 12:29:44 +00:00
moomarc
e90eae8450
- Removed duplicate sharesCreatureTypeWith property from isValid
2013-02-05 11:53:47 +00:00
RumbleBBU
ac7ce39877
Made it possible to include special rewards like predefined cards or duplicate cards in Quest duels.
...
Some notes:
- Special rewards for normal duels should be extremely rare, mostly for very hard opponents, 1 special reward per opponent, and always a percentage chance of getting the special reward (preferably less than 50%) rather getting a guaranteed reward.
- In the interests of downward compatibility, it is possible to define the Card Reward either in the [quest] portion (like before) or the [metadata] portion of the dck file. (Duels do not have the [quest] portion but if the definition were simply moved from [quest] to [metadata], all current challenge files would have stopped working properly.)
2013-02-05 11:37:16 +00:00
myk
ebe368ed9b
remove cards from one table after adding them to the other table so the displayed card stays consistent with the focused card
2013-02-05 11:19:46 +00:00
moomarc
072cf04271
- Converted Alpha Status to script
2013-02-05 11:18:40 +00:00
myk
0e65ad2ebf
Sell lands down to 50 when selling all extras in the card shop
2013-02-05 10:36:35 +00:00
Sloth
e63d914b47
- Fixed Ogre Slumlord.
2013-02-05 09:37:35 +00:00
Sloth
64e9f318ff
- Fixed Verdant Haven.
2013-02-05 09:28:59 +00:00
Sloth
1bc856b908
- Another fix for AddToughness.
2013-02-05 09:28:08 +00:00
Sloth
263c357dfc
- Fix last commit commiting WIP.
2013-02-05 09:23:53 +00:00