Commit graph

4488 commits

Author SHA1 Message Date
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
Neil Gentleman
00ec431889 add Gorgon Recluse, cleanup similar cards
Added filtering to BlocksOrBecomesBlockedByCreatureTriggeredAbility,
so that non-wall and color-specific basilisks could reuse it.

Simic Basilisk and Deathgazer were incorrectly destroying the creature
immediately, not at end of combat.
2015-11-18 21:05:14 -08:00
Quercitron
05a789cd8b Use approach with minimal weight matching to determine Swiss tournament pairings 2015-11-19 02:58:02 +03:00
LevelX2
9b074876db Merge origin/master 2015-11-19 00:42:45 +01:00
LevelX2
fd0d9c166d [C15] Added Mizzix's Mastery, Mirror Match and Synthetic Destiny. 2015-11-19 00:39:43 +01:00
Fiorden
3991ec4ba0 Merge pull request #1 from magefree/master
testing update
2015-11-18 21:05:09 +01:00
Fiorden
bfb7d06cae Fixed that Mountain subtype was not remowed by Spreading Seas, Sea's Claim 2015-11-18 20:05:06 +01:00
LevelX2
dcf3ac87f1 [C15] Added Deadly Tempest and Dread Summons. 2015-11-18 20:04:00 +01:00
LevelX2
7044e58231 [C15] Added Scourge of Nel Toth. 2015-11-18 17:39:32 +01:00
LevelX2
bfb54ca112 * Deflecting Palm - Fixed a bug that the to the source controller redirected damage of Deflecting Palm could not be redirected to an existing planeswalker of that controller. 2015-11-18 17:38:48 +01:00
Neil Gentleman
1750bf32a1 fix Seance
Spirit subtype wasn't being added, and the token shouldn't have haste
2015-11-17 23:36:06 -08:00
LevelX2
1d590442d0 [C15] Added Awaken the Sky Tyrant and Dream Pillager. 2015-11-15 20:05:58 +01:00
LevelX2
160f14eed1 [C15] Oreskos Explorer, Bastion Protector and Dawnbreak Reclaimer. 2015-11-15 18:54:26 +01:00
LevelX2
d3751af0db [C15] Added Skullwinder and Ezuri's Predation. 2015-11-15 11:10:52 +01:00
LevelX2
576a9ea74f Updated mtg-cards-data.txt. Added a land deck for Mormir Basic format. 2015-11-15 10:25:02 +01:00
LevelX2
dd28bb18c4 * Untap symbol - Fixed that the creature has to be under your control since the start of the last turn or needs to have haste to be able to pay the untap cost (e.g. Pili-Pala). 2015-11-14 11:46:23 +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
ae3640557a Merge pull request #1361 from nigelzor/vanguard
add Momir Basic game type
2015-11-12 04:00:27 -05:00
Neil Gentleman
c5ecb26289 Momir: lookup token at activation
loading all the cards at game start is quite slow
2015-11-11 12:55:49 -08:00
Neil Gentleman
cda5a06a6c fix sorcery-speed LimitedTimesPerTurnActivatedAbility
calling super.canActivate() from inside activate() will always fail,
because the stack is no longer empty
2015-11-11 12:31:42 -08:00
LoneFox
70f77b858e Rename BecomesTappedCreatureControlledTriggeredAbility -> BecomesTappedTriggeredAbility and generalize it to allow all kinds of permanent fiilters instead of just controlled creatures. Implement cards: Lifeblood and Lifetap 2015-11-11 10:18:49 +02:00
LoneFox
f133854db1 Rename BecomesTappedTriggeredAbility -> BecomesTappedSourceTriggeredAbility 2015-11-11 09:49:25 +02:00
LoneFox
2c23d23566 Fix PlayWithTheTopCardRevealedEffect's text. Implement cards: Field of Dreams and Wizened Snitches 2015-11-10 21:11:11 +02:00
LoneFox
c33e7ad59b Add support for selecting the counter type during resolution to RemoveCounterTargetEffect. Use it for existing cards. Fix some tooltip text issues with the effect. Implement cards: Ferropede and Spinal Parasite 2015-11-10 20:35:48 +02:00
LevelX2
932b454595 * Myriad - Fixed handling of source object determination. 2015-11-09 14:25:42 +01:00
Neil Gentleman
eda5d1a1ef BoostSourceEffect: format X like BoostTargetEffect
primarily to fix Chameleon Colossus and friends, but also updated
Terra Ravager's ability to match the corrected format, and now
both Source and Target support -X, for Death's Shadow.
2015-11-08 22:14:15 -08: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
Quercitron
9b29cd042f Move updateExpansionSetCode from CreateTokenEffect.apply to Token.putOntoBattlefield 2015-11-08 20:16:47 +03:00
Quercitron
e23fc13db0 Fix pictures for some tokens from recent sets 2015-11-08 20:16:47 +03:00
LevelX2
6f2d3a18c0 [C15] Added Myriad keyword. 2015-11-08 11:51:36 +01:00
LevelX2
7572c756c4 * PlanarGate, Mana Matrix, StoneCalendar - Fixed not correctly working spell cost reduction. 2015-11-08 09:57:35 +01:00
fireshoes
4de4caad26 [C15] Implemented Shielded by Faith, Grasp of Fate, Arachnogenesis, and Great Oak Guardian. 2015-11-07 21:18:21 -06:00
LevelX2
5702c694a9 * Fixed that the corresponding token image was not always set correctly. 2015-11-07 21:23:22 +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
d596a1ef83 * Fixed a bug that self scope were checked for non relevant events (fixes #1350). 2015-11-07 13:32:15 +01:00
LevelX2
b1c3d690f5 * Fixed some ability and subtype removing effects (fixes #1352). 2015-11-07 12:29:31 +01:00
LevelX2
bb99148b78 * Fixed a problem with zone change counter comparation. 2015-11-07 10:16:11 +01:00
fireshoes
ae55c8b176 [C15] Updated complete spoiler and added existing reprints. Add Rite of the Raging Storm and Corpse Augur. 2015-11-06 12:35:50 -06:00
LevelX2
e3c43c0c31 Merge origin/master 2015-11-06 12:30:15 +01:00
LevelX2
27ae613ce8 * Fixed handling of zoneChangeCounter of PermanentCard (fixes #1353). 2015-11-06 12:28:58 +01:00
LevelX2
e6860a6020 Merge pull request #1357 from LoneFox78/master
Some Tempest
2015-11-06 12:09:52 +01:00
LoneFox
fde9ae68dc Extract DestroyTargetAtBeginningOfNextEndStepEffect from Stone Giant to its own file. Implement cards: Blood Frenzy, Flowstone Sculpture, Imps' Taunt, and Mogg Cannon 2015-11-06 09:19:47 +02:00
LevelX2
e82a7b621e * Fixed a problem with countering abilities on the stack. 2015-11-05 15:39:12 +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
LoneFox
2080ad3ab8 Add CastOnlyIfYouHaveCastAnotherSpellEffect and use it for existing cards. Implement card: Skyshroud Condor 2015-11-04 10:40:07 +02:00
LoneFox
9e3ef31b4b Implement cards: Apes of Rath, Endless Scream, Fool's Tome, and Fylamarid 2015-11-04 09:29:08 +02:00
BursegSardaukar
3376f418c6 Pulled from trunk. 2015-11-01 16:42:44 -05:00
BursegSardaukar
6807496357 Corrected bug with copy/paste 2015-10-04 21:32:40 -04:00
BursegSardaukar
8afc24ae15 Added the effect to allow for future card usage. 2015-10-04 16:10:52 -04:00
LevelX2
abca80e951 * Cascade - Fixed that the remaining cards were not set to graveyard in a random order. 2015-10-02 15:05:00 +02:00
LevelX2
cc8c650285 * Iname as One - Fixed that it was able to return itself. 2015-10-02 08:40:26 +02:00
LevelX2
73766a21eb * Fixed that the token image of Kithkin Solder was not shown (token was only named Kithkin instead of Kithkin Solder). 2015-10-02 01:37:15 +02:00
LevelX2
5912ed80ad * Fixed some problems with undo/cancel action (fixes #1267). 2015-10-02 01:04:40 +02:00
LevelX2
8044940a97 * Fixed a bug that if all targets (if targets were set) of a spell with an up to target definition (e.g. Adverse Conditions) became illegal the spell did not fizzle as it should. 2015-09-30 00:53:33 +02:00
LevelX2
f5b411c516 Merge pull request #1292 from LoneFox78/master
Third part of the big token cleanup + a few other fixes and new cards
2015-09-29 15:48:09 +02:00
LoneFox
ab0e4b0ddc Revert connectSource changes from TapTargetEffect. Not needed anymore. 2015-09-29 15:25:52 +03:00
LoneFox
705bdabafb Much simpler way to implement DontUntapAsLongAsSourceTappedEffect.
This also works correctly when the source permanent untaps and then taps again.
2015-09-29 15:11:01 +03:00
LoneFox
82f2d73fb9 Add DontUntapAsLongAsSourceTappedEffect and connectSource parameter to TapTargetEffect. Use them for existing cards. Implement card: Thalakos Dreamsower 2015-09-29 13:15:09 +03:00
LoneFox
6d90539b7b Fix DealsDamageToOpponentTriggeredAbility unconditionally overwriting the targets of any effects added to it.
This fixes at least Charnelhoard Wurm, and possibly other similar abilities.
2015-09-29 12:19:50 +03:00
LevelX2
8f086c8c7e * Maelstrom Nexus - Fixed that the compared casting cost was always 5 instead of the casting cost of the spell that got Cascade. 2015-09-29 00:37:52 +02:00
LevelX2
707358f875 Fixed a bug that effects forcing creatures to block an attacker forced also creatures of players not attacked (multiplayer games) to block, locking the game UI. 2015-09-29 00:36:08 +02:00
LevelX2
7650f53dee * Rosheen Meanderer - Fixed that the created conditional mana could only be used for spells. 2015-09-27 10:29:30 +02:00
LevelX2
b6f6866452 * Krond the Dawn-Clad - Added the missing vigilance ability. 2015-09-27 00:34:10 +02:00
LevelX2
46fa935172 * Emrakul, the Aeons Torn, Ulamog, the Infinite Gyre, Kozilek, Butcher of Truth - Fixed that the shuffle graveyard to library was wrongly done for the controller of instead the owner. 2015-09-27 00:22:51 +02:00
LevelX2
56a5030f93 * Goryo's Vengeance - Fixed that the beginning of next end step ability also exiled the target if it meanwhile left and returned the battlefield as sa new object. 2015-09-26 23:30:24 +02:00
LoneFox
a2e1e2e614 Remove some unneeded imports and fix an incorrect set code 2015-09-26 13:31:40 +03:00
LoneFox
c47d39390f Add 4/4 Beast token and use it for existing cards. 2015-09-26 12:09:00 +03:00
LoneFox
e16bec3472 Add 5/5 Wurm token with trample and use it for existing cards. 2015-09-26 11:50:41 +03:00
LoneFox
b64c495212 Fix a copy-paste error 2015-09-26 11:44:59 +03:00
LoneFox
4e5bcddd56 Add 5/5 Dragon token and use it for existing cards. 2015-09-26 11:44:03 +03:00
LoneFox
54acb445db Add Goblin token with haste and use it for existing cards. Add missing images for Goblin token. 2015-09-26 11:18:15 +03:00
LoneFox
06440fd606 Add red and white Soldier token with haste and use it for existing cards. Kill unnecessary custom effect from Assemble the Legion. 2015-09-26 10:35:31 +03:00
LoneFox
66a341e1a2 Add Bird token and use it for existing cards. 2015-09-26 10:09:34 +03:00
LevelX2
6119f71022 * Added the text (to sacrifice) for selections done for sacrifice costs so the player can better distinguish what object to select currently. 2015-09-25 23:15:55 +02:00
LevelX2
85cec315db * Fixed a lot of cards with return permanent to hand costs, where the selection of the permanent was handled targeted. 2015-09-25 22:32:53 +02:00
LevelX2
28b575cf37 * Ninjutsu - Fixed that the selection of the unblocked attacker was not handled untargeted (so shroud on a creature did prevent to be able to select it). 2015-09-25 22:15:13 +02:00
LevelX2
c7edbbac5b * Fixed a bug that automatically pass priority after putting an activated ability to stack passed to next phase if the ability was not put on the stack (e.g. Suspend). 2015-09-25 22:04:49 +02:00
LoneFox
0ebd773caf Merge branch 'master' of https://github.com/magefree/mage 2015-09-25 20:51:29 +03:00
LoneFox
71e8d90c83 Implement cards: Circle of Protection: Shadow, Faceless Devourer, Stronghold Overseer, and Thalakos Mistfolk 2015-09-25 07:20:33 +03:00
LevelX2
3bb7b6dd5b * Slab Hammer - Removed unneccessary target. 2015-09-25 00:21:29 +02:00
LevelX2
b2cc5b59c6 * Brutal Expulsion - Fixed that the spell could wrongly target itself on the stack. 2015-09-24 19:51:30 +02:00
LoneFox
9bedbc8821 Add copy() method to tokens that need it. 2015-09-24 09:47:59 +03:00
LevelX2
21061ac928 Fixed some attack forcing cards to only force to attack once a turn instead of wrongly forcing to attack each combat. 2015-09-24 08:25:45 +02:00
LoneFox
9d52ecef83 Fix yet another copy-paste error 2015-09-24 09:05:22 +03:00
LoneFox
d6a1f96547 Add Faerie Rogue token and use it for existing cards. Implement card: Notorious Throng 2015-09-24 08:57:25 +03:00
LoneFox
bee7758625 Fix another copy-paste error 2015-09-24 07:54:45 +03:00
LevelX2
044e8b70f0 Some minor changes for BFZ token image handling. 2015-09-23 19:53:25 +02:00
LoneFox
f380b2cdde Add Goat token and use it for existing cards. 2015-09-23 16:59:21 +03:00
LoneFox
10695ddf4c Add Warrior token and use it for existing cards. 2015-09-23 16:34:20 +03:00
LoneFox
9279d81c24 Add Human token and use it for existing cards 2015-09-23 13:55:40 +03:00
LoneFox
e5e7ec456d Fix a couple of copy-paste errors 2015-09-23 13:37:10 +03:00
LoneFox
3d1ae1c414 Add Cat token and use it for existing cards. 2015-09-23 12:49:12 +03:00
LoneFox
5fdd1aae49 Add Sliver token and use it for existing cards 2015-09-23 12:34:28 +03:00
LevelX2
822528d05c * Splice onto Arcane - Fixed that an arcane spell with no targets did not fizzle if a targeted spell was spliced with it that has no more legal targets on resolution (so all targets of the spell were illegal). 2015-09-21 17:57:27 +02:00
LevelX2
6249e21ff3 Fixed possible null pointer exception. 2015-09-21 16:26:00 +02:00
LevelX2
9ab323a89c Deck editor - renamed sort type "Color Detailed" to "Color Identity" and compare for the sort also with mana symbols in casting cost and rules. 2015-09-21 08:11:58 +02:00