Commit Graph

7 Commits

Author SHA1 Message Date
Meerkov
1cfb937490 Updates the project for Java 8.
Maps.newHashMap() was replaced with null in numerous locations. A null check is performed in the locations that read this value. This prevents unnecessary allocation of memory and fixes compiler errors.

"final" keyword added to RepeatEachEffect, which used local variables in non-local scope.
2018-04-16 18:26:15 -07:00
KrazyTheFox
6d5e56f6bf Normalize line endings 2017-12-28 23:40:29 -05:00
Myrd
73cad47c3c Fix bug with convoke where colored mana could end up being used as colorless.
Before this patch, the code would try to pay the mana symbols as they appear - for example if you convoke with a white creature and click "white" in the dialog, but the cost for the spell is "1WW", it would actually use that white mana to pay for the "1" portion of the cost, leaving "WW" to be paid (which is problematic if you have a swamp and a plains untapped which you were planning to use in addition to the white creature).

This change moves the logic for paying the cost from the UI code to the engine code (and re-uses existing code there) and also adds some unit tests for it.
2014-12-01 06:06:57 +00:00
teferi
076783aac4 reverting module refactoring changes 2014-03-02 14:19:50 +00:00
teferi
2065010633 updating eclipse project files 2014-03-01 22:59:47 +00:00
teferi
3fb97dfe15 - Adding mobile modules to the maven BuildConfig.java
- moving mobile source and resource files to adhere to the maven conventions
- clean up of the poms
- regenerated the eclipse project files with mvn eclipse:eclipse to put them inline with the modifications of the poms
- adding structure of the bundle module
2014-02-28 09:11:29 +00:00
Maxmtg
86b422230e added module 'game' 2013-11-21 21:32:49 +00:00