Nathaniel Brandes
ce1f4a3bf8
Phyrexian mana now correctly a payment choice.
...
Per rule 601.2b, it is not determined at the pay costs step,
but at the "choice" step, long before costs are determined.
This fixes trinisphere interactions and should be consistent with the
rules.
2017-03-08 20:03:28 -08:00
ingmargoudt
1caf3a6be4
change getLibrary().size() > 0 to hasCards()
2017-03-07 17:28:26 +01:00
ingmargoudt
5a57731968
added new helper methods to test for CardType, to get rid of the contains(CardType.XXX) everywhere, put the logic of that in one place and use the interface call
2017-03-04 00:16:36 +01:00
ingmargoudt
d01aed42ed
change enum equals to ==
2017-03-01 15:05:44 +01:00
Anders Åstrand
f68460603a
Add client-side user ignore list
...
This commit adds a client-side per-server ignore list.
* Whispers and talk from an ignored user is hidden
* Ignored users cannot join your tables
* Ignored users tables are hidden
2017-02-22 22:16:09 +01:00
vraskulin
a15220d51e
Bugfixes with != instead of equals and default toString calls
2017-02-15 19:52:20 +03:00
vraskulin
0557b5e89c
list.size > 0 changed to !list.isEmpty
...
We care about if it's empty or not, not about it's size
2017-02-06 14:32:51 +03:00
vraskulin
f60ebfbb1f
All 1-character strings converted to primitives
...
"b" + "r" now changed to 'b' + 'w'. It's more straight-forward, and may cause perfomance improvements - character primitives allocation is faster and less expensive than string creation.
2017-02-06 14:32:51 +03:00
LevelX2
cec9d00a59
* Fixed that non creature spells with morph could not be countered with Remove if cast with morph.
2017-01-24 23:08:47 +01:00
LevelX2
0014c7dcc5
* Fixed some possible null pointer exceptions.
2017-01-22 22:46:14 +01:00
LevelX2
fdd28cde4b
* Possibility Storm - Fixed a problem with split card moving.
2017-01-22 22:04:50 +01:00
LevelX2
b7c0c1e8b4
* Mindbreak Trap - Fixed a problem with exiling copied (e.g. by Storm)spells.
2017-01-15 16:04:45 +01:00
igoudt
ac8962cb29
replaced enum comparison from equals to ==
2017-01-11 09:53:16 +01:00
igoudt
316137b5e2
replaced various !contains -> put with putIfAbsent
2017-01-09 13:07:32 +01:00
LevelX2
a75e4f4fcb
Fixed that adding counters to players did not work correctly (e.g. Winding Constrictor).
2017-01-07 23:53:47 +01:00
vraskulin
f04ba151f7
Refactoring
...
See github line by line comments in 'File changed'
2016-12-29 16:49:12 +03:00
LevelX2
ecc18072cf
Cyclopean Tomb - Update.
2016-12-28 02:02:57 +01:00
LevelX2
862ac38f51
* Fixed that special actions (e.g. delve mana payment) were handled correctly if a player plays a turn for another player.
2016-12-24 16:52:06 +01:00
LevelX2
3d95849c10
Some fixes to the Monarch designation.
2016-12-07 17:14:08 +01:00
LevelX2
68d0e6b9fa
Added the monarch concept to xmage and all related cards.
2016-11-27 01:14:32 +01:00
Dilnu
9ff3e2c670
Fix the counter removal code so it doesn't throw events when it's removing nonexistent counters.
2016-11-21 07:39:47 -05:00
LevelX2
a4e1c7aefd
Merge origin/master
2016-11-03 22:38:14 +01:00
LevelX2
d2561c1752
* Fixed a problem with triggered mana abilities. Fixed a problem that AI did not always select the needed mana color. Fixed a problem with Reflecting Pool not taking triggered mana abilities into account.
2016-11-03 22:37:54 +01:00
emerald000
c38f96ae55
[C16] Implemented Partner ability.
2016-11-01 22:59:39 -04:00
LevelX2
3f882b73c4
Fixed a problem with activated spells that could not be used but were used by AI and available mana calculation.
2016-11-01 14:31:02 +01:00
LevelX2
6598e6cc7f
* Some minor changes.
2016-10-28 07:53:18 +02:00
fireshoes
89dd981075
Merge
2016-10-17 23:45:47 -05:00
LevelX2
9cf9d69c55
Fixed minor problem of Volrath's Laboratory. Added combat flag to LIFE_LOST event.
2016-09-28 08:00:32 +02:00
LevelX2
c9bb0be016
Reworked selected modes handling. That fixed the Subtle Strike targeting problem.
2016-09-24 01:12:01 +02:00
LevelX2
8fb04ddbef
Fixed a bug that let cards disappear after moving cards from hand to library (e.g. Teferi's puzzle).
2016-09-22 21:36:21 +02:00
LevelX2
c82d6b5566
* Fixed some possible null pointer exceptions.
2016-09-20 23:40:25 +02:00
LevelX2
0042dc1ad9
Some minor fixes to game log / card rules text /messages.
2016-09-15 16:10:17 +02:00
LevelX2
14cd2dfa6d
* Jeleva, Nephalia's Scourge and Knowledge Pool - Fixed a bug that created null pointer exception if card was cast from exile.
2016-09-14 22:31:04 +02:00
ingmargoudt
3128bd2b4b
replace [list].size() == 0 and [string].length() == 0 to use .isEmpty() instead
2016-09-14 15:27:31 +02:00
Samuel Sandeen
80da09471d
Merge remote-tracking branch 'magefree/master'
2016-09-07 23:31:38 -04:00
Samuel Sandeen
c33a731a4a
Refactor the core zone change code to use a common code path.
2016-09-07 23:31:26 -04:00
Samuel Sandeen
34846170c4
Remove an unused argument to Player.putInGraveyard
2016-09-05 11:47:52 -04:00
Samuel Sandeen
db3c2e9d8c
Clean up an inconsistency in ZoneChangeEvent handling
...
Some places set a bit on the ZoneChangeEvent if a permanent was meant
to enter the battlefield tapped but only MeldCard ever read that bit to
determine whether things should come into play tapped.
2016-09-05 09:51:32 -04:00
ingmargoudt
e2a479255a
refactor : removed all instances of new Random() and replaced with RandomUtil for a ThreadLocal randomizer
2016-09-05 15:03:47 +02:00
Samuel Sandeen
ef5ed5256a
Clean up the deprecated moveCards methods in Player
2016-09-03 20:04:12 -04:00
Samuel Sandeen
bec11804f5
Make the handling of counters more consistent.
...
This dramatically reduces the code duplication around counters handling.
2016-09-03 16:52:41 -04:00
LevelX2
6f89a67f68
* Some more changes to return boolean for addCounters.
2016-08-11 19:14:18 +02:00
LevelX2
9b683ef481
* Fixed that cost modification with target check (Icefall Regent) did not work for flashbacked spells ( fixes #1405 ).
2016-08-05 17:33:52 +02:00
drmDev
642de722f6
Mind Shatter bug fix for #2110 . Before a discard effect can happen, checks the amount of cards to be discarded > 0
2016-07-24 15:00:07 -04:00
emerald000
e1b3428a39
[EMN] Implemented basic Meld functionality.
2016-07-11 04:49:40 -04:00
draxdyn
62d5d45a45
Add support for F6
...
Skips everything until next turn, except for declare attackers and blockers.
F11 and F9 are a better design, but F6 is provided for compatibility with
established conventions.
There is currently no GUI button for it.
2016-06-24 21:34:30 +02:00
LevelX2
e74f5995cb
Fixed some more possible null pointer exceptions.
2016-06-18 14:46:35 +02:00
Nathaniel Brandes
11158d5fa4
Fix casting spell with no cost.
...
Ancestral visions should now correctly not be castable with Jace,
Telepath Unbound and be castable for free with Sins of the Past and its
ilk.
2016-05-17 00:59:53 -07:00
Nathaniel Brandes
5e6d8f49a7
Correct function change.
2016-05-13 23:25:51 -07:00
Nathaniel Brandes
4b6bbacd8c
Migrated some card moving callers to non-deprecated method.
...
Since the function the were calling just calls into the non-deprecated
method, this is a low risk change.
2016-05-13 23:20:03 -07:00