Susucre
f75b1c9f0a
Code cleanup: protect all copy constructors ( #10750 )
...
* apply regex to change public copy constructors to protected
* cleanup code using now protected constructors
* fix manaBuilder weird casting of Mana into ConditionalMana
2023-08-04 19:34:58 -04:00
Evan Kranzler
60e488cf05
rename classes ( #10383 )
2023-05-17 18:49:30 -04:00
Oleg Agafonov
f86cf176d7
Tokens rework:
...
- added reminder / helper tokens support (example: Copy, Morph, Day // Night, related to #10139 );
- added verify checks for reminder tokens;
- added images download for reminder tokens;
2023-04-27 19:05:31 +04:00
Oleg Agafonov
a15a0daa04
Fixed potential NPE errors in getPhase usage (fixed Berserker's Frenzy, etc)
2023-03-25 16:01:27 +04:00
Oleg Agafonov
a7480aeab1
* Game: fixed random sort order of choices in choose dialogs
2023-03-21 03:11:55 +04:00
Alex W. Jackson
639277402d
Fix #8485
2022-09-17 09:27:49 -04:00
Evan Kranzler
8040e7d1e8
[NEC] fixed Kotori, Pilot Prodigy's granted crew ability not animating vehicles ( fixes #8713 )
2022-02-18 22:22:44 -05:00
Evan Kranzler
9c8943384a
small nonfunctional cleanup to continuous effects handling
2022-02-17 08:19:52 -05:00
Evan Kranzler
d030848552
Reworking "as long as you control this" effects (WIP) ( #8620 )
...
* added WhileControlled duration, removed SourceOnBattlefieldControlUnchangedCondition
* refactored effects which keep things tapped
* a few additional missed cards
* refactored cards which check for being controlled and tapped
* [NEO] Implemented Kyodai, Soul of Kamigawa
2022-01-30 22:00:10 -05:00
Oleg Agafonov
8a69ea97e7
Tests: fixed that some game errors can't be caught by test framework (related to d202278ccd)
2021-08-12 00:08:08 +04:00
Oleg Agafonov
9b98565e8a
Miss synchronized, can be related to ConcurrentModificationException problem in d202278ccd
2021-08-10 14:31:06 +04:00
Oleg Agafonov
c9ab896d24
* GUI: added auto-choose for replacement effects (remember answer in dialog + reset answer in popup menu + new option in preferences; #4360 , #328 , #4219 , #6676 , #7914 );
2021-08-09 11:26:11 +04:00
Oleg Agafonov
28473c7bd0
* GUI: added popup menu to view player's outside/sideboard at any time (allows to view only own or computer's sideboards);
2021-07-21 13:44:35 +04:00
Evan Kranzler
d1f51cae2f
[ZNR] fixed Ashaya, Soul of the Wild and Volrath's Shapeshifter interaction ( fixes #7812 )
2021-05-12 09:41:06 -04:00
Evan Kranzler
bf2e90feae
[C21] Implemented Yedora, Grave Gardener
2021-04-28 09:21:39 -04:00
Oleg Agafonov
0e916b6e29
Dev: added additional info to some classes for easy debug;
2021-03-07 17:16:54 +04:00
Oleg Agafonov
dda69cd009
* AI: improved support of "as though mana" abilities (now computer can choose correct mana ability to pay, example: Draugr Necromancer);
...
* Dev: added card's LKI support of multi part cards (mdf/split/adventure);
* Dev: improved support of adding/removing counters from mdf cards;
* Draugr Necromancer - fixed support of mdf/split/adventure cards (#7620 );
2021-02-27 20:14:12 +04:00
Oleg Agafonov
48e9cc3e07
PlayTheTopCard improves: added correct usage check, fixed outdated rule texts, Bolas's Citadel simplified (related to #7605 );
2021-02-21 05:48:09 +04:00
Oleg Agafonov
e941ce108b
[KHM] fixed Old-Growth Troll - correct addAbility usage for permanents;
2021-02-02 04:05:38 +04:00
Oleg Agafonov
2d96d36ec8
AsThough effects improves and fixes:
...
* AsThough: added documentation about code usage and restrictions;
* AsThough: added additional checks for correct usage;
* AsThough: simplified some code;
* PlayFromNotOwnHandZoneTargetEffect - added permanents support as targets;
* Release to the Wind - fixed that it can't cast exiled cards (#7415 , #7416 );
* Test framework: fixed that checkExileCount checking card's owner;
* GUI: fixed typo in Trample card icons;
2021-01-31 22:32:23 +04:00
LevelX2
9fc0e2f25a
* Added some trace output for continous effects and triggered abilities. Changed duration of AffinityEffect to WhileOnStack to prevent wrong handling for removement of the effect.
2021-01-13 09:14:29 +01:00
Oleg Agafonov
db239a1055
Refactor: replaced sourceId by source and introduced source param in some methods;
2020-12-12 20:23:19 +04:00
Oleg Agafonov
c1e7a08c68
* Modal Double Faces cards - fixed that a second side can't be played from non hand zones in some cases ( #7200 );
...
Play lands from graveyard effect - reworked as AsThoughEffect;
2020-11-23 02:30:54 +04:00
Oleg Agafonov
8ac78b4b9e
Added modal double faces cards implementation (MDF cards, #7012 )
2020-11-01 10:03:09 +01:00
LevelX2
90c6637dc2
* Implemeented consumable flag for asThoughtEffects and a player choice which effect to use if multiple consumable effects allow the same action.
2020-08-21 21:24:42 +02:00
LevelX2
8105d8b26c
* Improved handling of asThoughtAs approval by abilities that allows a clear and easy assignment of the approving effect.
2020-08-21 14:58:22 +02:00
Oleg Agafonov
72891a5bad
Refactor: removed redundant temporary effects list ( #6693 , #6618 )
2020-06-24 21:11:49 +04:00
LevelX2
1e36b39434
- Reworked SourceOnBattlefieldControlUnchangedCondition checking now the LOST_CONTROL event which solves the problem with the old code to not be able to detect all controller changes of layered changeController effects when applied later.
...
- Simplified and fixed some problems of the handling of the "Until end of your next turn" duration.
- Fixed that some continous effects changed controller but shouldn't dependant from their duration type. Controller chnage will now done duration type dependant.
(that change fixes #6581 in a more general way undoing the effect specific changes of 2e8ece1dbd ).
2020-06-10 22:28:23 +02:00
Oleg Agafonov
a75d08283f
* Split cards - added spliced effects support for fused spells, no more double splice pays ( #6493 , #6549 );
2020-06-10 09:58:21 +04:00
LevelX2
eb846c0499
* Added ID name instead of only the name to the replacement effect selector list. Otherwise you can't identify the related source if you have multiple sources with the same name (related #6298 ).
2020-06-09 16:37:42 +02:00
Oleg Agafonov
d63a3e88ce
Ability refactor: fixed broken effects timestamp in some use cases
2020-05-28 23:07:36 +04:00
Evan Kranzler
9978b9bec9
fixed issue with dependecies of continuous effects
2020-04-23 17:37:31 -04:00
Evan Kranzler
58541b8a24
fixed menace counters not working
2020-04-20 19:21:01 -04:00
Evan Kranzler
2483fd9c8d
Implemented Fully Grown
2020-04-02 15:04:28 -04:00
Ingmar Goudt
ae7919cd07
program towards Interface rather than implementations
2020-02-10 10:40:06 +01:00
jeffwadsworth
d6c2f031d0
- Fixed #6236
2020-02-06 17:47:08 -06:00
Oleg Agafonov
5adab75324
Revert "format: organize imports"
2020-02-05 02:17:00 +04:00
Leandro Doctors
8a0a9acff7
format: organize imports
2020-02-04 16:21:48 -03:00
Oleg Agafonov
9cd3eeb898
* UI: improved prevention effect messages (now it shows source object name in message window);
2020-02-01 11:37:10 +04:00
Oleg Agafonov
8ca6fd8552
Can't be target/attached effects - fixed that user gets multiple warning message about prevention effect;
2020-01-28 05:31:32 +04:00
Oleg Agafonov
c835fb409d
* Bolas's Citadel - fixed that it can't play cards with cycling ( #6215 );
2020-01-22 14:45:44 +04:00
LevelX2
62062367e2
Implemented Furious Rise.
2020-01-12 13:19:09 +01:00
LevelX2
b068d10c44
* Nissa, Vastwood Seer - Fixed a bug of the Nissa, Sage Animist that the animated lands lost the creature type as soon as Nissa was cast again from command zone or from hand ( fixes #5677 ).
2019-12-30 21:35:10 +01:00
LevelX2
133cc7342d
* Fixed a problem with check playable methods causing e.g. endless loop if Shared Fate was on the battlefield.
2019-12-25 16:01:02 +01:00
Oleg Agafonov
d271feb0cb
Reworked asThough effects:
...
* Game: improved asThough effects processing and combo with different cards/abilities (e.g. adventure cards, play from non own hand, etc);
* AI: computer can see and play non hand cards with dynamic effects in all zones (not only graveyard);
* AI: computer can see and play "as though" mana and alternative costs;
* UI: added non hand cards highlights of available abilities/cards;
2019-12-14 18:47:56 +04:00
Patrick Hulin
fbc88f152e
Fix Teferi, Time Raveler behavior and ignore W6 emblem failure for now.
2019-12-10 14:24:35 -05:00
Patrick Hulin
2f138a04ae
Fix issue with casting opponents' cards.
2019-12-10 13:33:27 -05:00
Evan Kranzler
0636d470e2
fixed Splice onto Instant or Sorcery causing rollbacks, still need to fix it not working ( #5830 )
2019-06-07 22:08:41 -04:00
Oleg Agafonov
367a1fd189
Added ConditionalPreventionEffect to support prevention effects with conditions ( #5738 )
2019-05-01 12:49:19 +04:00
Oleg Agafonov
534037e095
* Until end of your turn - fixed that effects discarded too early in multiplayer games ( #5759 , #5676 );
...
Tests: added dozen tests for end of turn effects and related cards.
2019-04-28 11:27:08 +04:00