poixen
a5242ff087
resolved conflicts
2015-11-21 12:02:55 +01:00
poixen
56be135532
Removed minus subtraction limits
...
+ Removed minus subtraction limits to allow other areas of code to work
2015-11-20 17:22:48 +01:00
LevelX2
8a133a43d0
Added test for Mana.enough method.
2015-11-20 15:06:00 +01:00
Quercitron
7e58dc70d5
Update Swiss tournament pairing - For the last round, for each unpaired player pair against the highest ranked player they haven't played against
2015-11-20 02:54:50 +03:00
LevelX2
b30a6c4b15
* Cryptoplasm - Fixed that the copied creature did not have the triggered ability ( fixes #1367 ).
2015-11-19 23:28:12 +01:00
LevelX2
c4ab5806e0
Revert "Mana Class Overhaul"
2015-11-19 22:59:57 +01:00
LevelX2
68ff09c219
Revert "Mana updates"
2015-11-19 22:59:15 +01:00
LevelX2
f4871fe489
Merge pull request #1375 from poixen/mana_cleanup
...
Mana updates
2015-11-19 22:37:14 +01:00
poixen
05b841577a
added subtraction logic to enough()
...
+ added subornation logic to enough(). We do not want to mix the public
subtract() call with this method. As doing so would mean that either a)
subtraction can go below 0 (this should not happen) or b) we break this
function with exceptions. This is a work around for these scenarios.
2015-11-19 17:42:59 +01:00
poixen
2c617a6aaf
Mana updates
...
+ calling subtraction will now throw an exception if you try and use
more mana than is available. This is better than setting it to 0.
Setting to 0 impose that you should still be allowed to perform the
action.
+ updated subtraction test to check for exception
+ subtractionCost() will not allow using mana that is not available,
same as subtract()
2015-11-19 17:09:40 +01:00
LevelX2
ec7c888044
Some fixes to put token onto battlefield handling of cards. Some minor reworks.
2015-11-19 15:52:45 +01:00
LevelX2
7bb5d1bb43
Merge pull request #1374 from poixen/mana_cleanup
...
Mana Class Overhaul
2015-11-19 14:37:39 +01:00
Quercitron
486d547f5e
Fix Swiss pairing for the case when some players have left the tournament
2015-11-19 13:18:43 +03:00
poixen
1f5638539f
Class Overhaul
...
+ added javadoc
+ added final to method variables that should not be mutated
+ Mana can no longer be initialised with minus values
+ added null assertions
+ renamed ‘addXXX’ to ‘increaseXXX’. Add implies that you are able to
add variable amounts.
+ subtraction can no longer allow minus values.
+ removed unused state
+ refactored classes use renamed/removed mana calls
+ added comment to contains(), needs to be looked into?
+ Added validation to setting of mana. Can no longer be set to minus
values. Will log if an attempt is made
+Added comment to static mana, this is unsafe.
2015-11-19 09:53:52 +01:00
Quercitron
05a789cd8b
Use approach with minimal weight matching to determine Swiss tournament pairings
2015-11-19 02:58:02 +03:00
LevelX2
7044e58231
[C15] Added Scourge of Nel Toth.
2015-11-18 17:39:32 +01:00
LevelX2
70bce1c082
* Void Winnower - Fixed that the check for even casting costs did not work correctly.
2015-11-14 11:24:26 +01:00
LevelX2
d3000da3a3
* Void Winnower - Fixed that the check for even casting costs did not work correctly.
2015-11-14 11:14:50 +01:00
LevelX2
50b5602459
* Conflagrate - Fixed that the damage amount could be calulated if cast by flashback.
2015-11-14 10:01:13 +01:00
LevelX2
1335d58e77
* Collapsing Borders - Fixed that it did not give life to players.
2015-11-14 02:33:24 +01:00
LevelX2
4711e0cf99
Changed ability handling of modal spells to be able to select the same mode multiple times with different targets.
2015-11-14 01:56:56 +01:00
LevelX2
431d0005f2
Updated modes to handle selection of modes multiple times (not working yet if targets included).
2015-11-08 20:07:02 +01:00
LevelX2
6f2d3a18c0
[C15] Added Myriad keyword.
2015-11-08 11:51:36 +01:00
LevelX2
f3e8a93316
* Renegade Krasis - Fixed that check if Renegade Krasis was evolved did not always work correctly.
2015-11-07 21:21:03 +01:00
LevelX2
b1c3d690f5
* Fixed some ability and subtype removing effects ( fixes #1352 ).
2015-11-07 12:29:31 +01:00
LevelX2
27ae613ce8
* Fixed handling of zoneChangeCounter of PermanentCard ( fixes #1353 ).
2015-11-06 12:28:58 +01:00
LevelX2
3de7ff6808
* Some rework of card moving after spell countering.
2015-11-05 00:37:30 +01:00
LevelX2
1139495fd7
* SetPowerToughnessSourceEffect - Set the correct sublayer to use ( fixes #1354 ).
2015-11-04 22:31:35 +01:00
LevelX2
af18f95bba
Minor changes.
2015-11-04 17:16:45 +01:00
LevelX2
54d28550b4
Added a test.
2015-11-04 12:28:48 +01:00
LevelX2
2e49a74aab
* Fixed test with Flashback and converge.
2015-10-31 10:32:45 +01:00
LevelX2
3beb5568c4
* Karn Liberated - Fixed that commanders were not returned to command zone after game reset.
2015-10-31 00:55:12 +01:00
LevelX2
e0c1492f88
* Fixed a problem that the AI was locked if a attack fee has to be paid but the AI was not able to pay the costs.
2015-10-30 22:34:42 +01:00
LevelX2
2153d5ccf5
* Fixed that for spells cast with flashback values calculated from the paid mana (e.g. Converge) did not work correctly.
2015-10-30 00:30:53 +01:00
LevelX2
d79776e589
* Added some tests.
2015-10-28 17:05:58 +01:00
Neil Gentleman
0c988de9fb
fix Impelled Giant
2015-10-27 20:24:57 -07:00
LevelX2
5c31b03c00
* Fixed a problem that ability controller of replacement effects for cards entering the battlefield were not changed early enough (e.g. causing problem if putting Canopy Vista of opponent with Oblivion Sower onto th ebattlefield).
2015-10-27 17:55:38 +01:00
Toby Lawrence
d42e5fed78
Razorverge Thicket should enter untapped only if you control two or less lands.
2015-10-25 17:58:20 -04:00
LevelX2
f14cbb7f36
* Fixed a bug with removing spells from stack (e.g. Split Second had some problems) fixes #1333 .
2015-10-23 18:25:36 +02:00
LevelX2
92bcd0d522
* Changed some more card movement handling.
2015-10-22 23:02:07 +02:00
LevelX2
2aaea46dc6
* Fixed that the exile and return effect of the flip planeswalker did not always work correctly.
2015-10-22 15:38:50 +02:00
LevelX2
af67e27bcd
* Alesha, Who Smiles at Death - Fixed that the move card to battlefield worked not correctly.
2015-10-22 15:37:58 +02:00
LevelX2
4629366ae7
* Fixed that spells without mana costs but suspend could be cast with no mana (e.g. Ancestral Vision).
2015-10-21 20:16:52 +02:00
LevelX2
d906fc8c00
* Fixed that damage redirection to planeswalker did cause an exception.
2015-10-21 15:35:58 +02:00
LevelX2
d20bbcfe0b
* Fixed that permanents brought onto battlefield by search abilities were always tapped.
2015-10-21 15:14:20 +02:00
LevelX2
701a722904
* Fixed some redirect effect sthat were implemented as prevention effects ( fixes #1216 ).
2015-10-20 22:58:24 +02:00
LevelX2
d58288da6d
Some changes to RedirectionEffect class. Fixed that Harm's Way and Shaman en-Kor prevented the damage instead of only redirecting the damage.
2015-10-20 17:16:13 +02:00
LevelX2
606bf4d6e0
* Fixed that it was not possible to play spells without costs with alternative costs (e.g. Ancestral Visions with Omniscience). Fixed that playing spells with alternate costs did also remove additional costs (e.g. card with entwine cast with Omniscience).
2015-10-20 00:44:32 +02:00
LevelX2
7c35a69360
* Fixed a bug that if copied spells should be shuffled into the library the original spell was removed from the stack.
2015-10-19 22:36:28 +02:00
Neil Gentleman
3817118bc0
Fix 'Of', 'By' and 'The' in card names
2015-10-19 00:44:26 -07:00