Commit Graph

2409 Commits

Author SHA1 Message Date
Maxmtg
d04e186dea more unused methods and imports removal 2017-08-13 01:44:36 +00:00
Maxmtg
07437b7880 Clean up unused imports that popped up in eclipse warnings List 2017-08-13 00:40:48 +00:00
Maxmtg
5ddd007f67 Remove player.getOpponent method, route former calls from AI through ComputerUtil.getOpponentFor(player) 2017-08-13 00:27:26 +00:00
Agetian
814978a178 - Fixed a NPE related to one of the previous commits. 2017-08-12 16:15:30 +00:00
Agetian
5350e77125 - When a permanent leaves the battlefield, remove all changed keywords on it (fixes e.g. the results of Magical Hack on Leviathan still partially persisting after it dies and is reanimated by something). 2017-08-12 14:56:22 +00:00
Agetian
22e2e32377 - Some subtype corrections. 2017-08-12 14:13:29 +00:00
Agetian
58b2c36498 - Added a comprehensive map of plural card subtypes to their singular counterparts, to the best of my knowledge of how the plural forms are formed (please take a look and update if necessary). Needed for the correct function of text change effects with any type (e.g. Homing Sliver + New Blood).
- Added an exception for the card text generation for the compound subtype "Eldrazi Scion" (e.g. Kor Castigator).
2017-08-12 13:58:26 +00:00
Agetian
44af80f336 - [C17] Added O-Kagachi, Vengeful Kami. 2017-08-12 09:53:55 +00:00
Agetian
13ba0121d7 - Use isEmpty() to test an empty string. 2017-08-11 17:31:46 +00:00
Agetian
b2fc1cc1f2 - [C17] Added Path of Ancestry.
- Fixed Command Tower and Path of Ancestry generating 2 colorless mana in non-EDH matches.
2017-08-11 14:14:57 +00:00
Agetian
6907c9c550 - Keeping num final in CharmEffect. 2017-08-11 09:46:13 +00:00
Agetian
93701585f8 - Somewhat improved Vindictive Lich (still doesn't play ball with hexproofed opponents though). 2017-08-11 09:40:59 +00:00
Agetian
50e596e63a - Mairsil, the Pretender: made the activations per turn limit parameter more generic. 2017-08-11 08:24:09 +00:00
Agetian
51ece30c34 - [C17] added Vindictive Lich.
- Might need an additional CharmEffect update in case the fact that you can choose multiple modes even with one opponent (but in which case the triggered ability fails and fizzles) is incorrect behavior [not sure].
2017-08-11 08:17:31 +00:00
Agetian
c974d4f30a - [C17] Added Mairsil, the Pretender. 2017-08-10 17:10:40 +00:00
Agetian
eb3f526a96 - Fixed ChangeTextEffect with specific new text. 2017-08-10 15:47:04 +00:00
Hanmac
c392deaf38 GameAction: checkStaticAbilities do CDA first 2017-08-10 04:59:07 +00:00
Agetian
33d56a287b - Do not show an empty "Remembered:" tag on cards on which ClearRemembered was run. 2017-08-09 13:16:41 +00:00
Agetian
80052fabe8 - Minor formatting fix. 2017-08-09 10:20:43 +00:00
Agetian
3819a845f0 - Improved token pictures for tokens generated by Fabricate. 2017-08-09 10:12:34 +00:00
Agetian
d66c0f2d61 - Fixed AF DestroyAll destroying cards that can't be destroyed in case those cards were granted indestructibility by another card that is destroyed first (e.g. Crested Sunmare + horse tokens and an attempted removal via a Wrath of God type effect). 2017-08-09 09:55:25 +00:00
Agetian
a07ff51c68 - [C17] Added 9 cards implemented by Marek (all tested ingame). 2017-08-08 12:23:56 +00:00
Agetian
d2f9eeab12 - Rudimentary prediction for Insult // Injury double damage effect for the AI (currently done in a way similar to how several other effects are predicted, which is (a) suboptimal - needs to be figured out from the replacement effect itself; (b) needs to be moved out from the Card and Player classes into the AI class, probably ComputerUtilCombat). Feel free to improve. 2017-08-08 10:00:04 +00:00
Agetian
4fb1c866da - AI: Avoid infinitely activating AF Untap on another permanent that will then be used to untap the first one (e.g. 2x Kiora's Follower) 2017-08-08 04:44:05 +00:00
Agetian
174d1f7838 - Puzzle mode improvements: no triggers will now run when the game state is set up; triggers will run in combat if attackers are declared. 2017-08-08 04:07:18 +00:00
Agetian
64f39dcb79 - Fixed Glarecaster and Mirrorwood Treefolk. 2017-08-07 08:01:14 +00:00
Agetian
ae29fef6d4 - Solution attempt #2 for the delayed trigger activator bug: store the original delayed trigger activator and restore it before running the trigger if a stored value was found, in case it was previously overwritten by the AI routines (fixes e.g. Rainbow Vale). 2017-08-07 03:43:38 +00:00
Agetian
f0af71d8c0 - Removed an experimental test line.
- Fixed Hazduhr the Abbot out of sight trigger definition.
2017-08-04 10:39:05 +00:00
Agetian
b65fed7a0d - Minor fix in description generation. 2017-08-04 10:23:45 +00:00
Agetian
364205cd9b - Added Hazduhr the Abbot. 2017-08-04 10:22:41 +00:00
Agetian
230644141a - Removed a debug print line. 2017-08-03 19:40:29 +00:00
Agetian
480fa113b7 - Account for "schemes can't be set in motion this turn" when trying to set the scheme in motion again. 2017-08-03 19:39:44 +00:00
Agetian
9016d937a3 - Added My Laughter Echoes.
- Some improvements to AF SetInMotion which may be necessary to support Bow To My Command (seems almost scriptable, but the tap unless cost won't work).
2017-08-03 19:38:40 +00:00
Agetian
f571685648 - Chain of Smog should be optional.
- Added Chain of Acid.
2017-08-03 13:29:14 +00:00
Agetian
701d363e3c - FIXME: correct the host card of a RepeatSubAbility since sometimes it's set incorrectly after an interaction, such as after a copy effect has been applied to a SA with Repeat/RepeatEach (e.g. the original Clone Legion not resolving correctly after its copy from Swarm Intelligence resolves). Couldn't figure out why this issue is happening, please assist if possible in determining the source of the problem and fixing it such that this workaround hack is unnecessary. 2017-08-03 13:00:06 +00:00
Hanmac
24e2e29894 CardFactoryUtil: fixed Eternalize and nonManaCost 2017-07-30 06:07:43 +00:00
Agetian
fceea79323 - Fixed interaction between put/remove counter as a part of cost payment and cards that trigger on things dying from counters (e.g. Necroskitter + a creature dying to a -1/-1 counter placed as a part of cost payment). 2017-07-29 13:36:09 +00:00
Hanmac
0b85346ac4 TriggerHandler: try to fix Splendid Reclamation and Valakut 2017-07-29 05:11:22 +00:00
Agetian
53f0544da8 - Alternative Cost for spells should be added to all spells on the card, not only the first spell ability (fixes interaction with split cards, among possibly other things). 2017-07-28 13:45:14 +00:00
Agetian
acfdf23c22 - Fixed the player's max hand size in Puzzle Mode being equal to 0 by default (now set to 7 per the default MTG rules).
- Fixed the "Turns:X" parameter not working correctly in Puzzle Mode.
2017-07-26 12:58:04 +00:00
Agetian
92a760541b - Fixed StaticAbilityContinuous applying negative P/T bonuses for cards like Death's Shadow when player's life was negative (incorrect under the new rules). 2017-07-25 15:13:14 +00:00
Agetian
f9e987e933 - Reverted several Java 8 functions to their Java 7 counterparts for Android compatibility. 2017-07-25 03:12:04 +00:00
Blacksmith
1668717cf8 [maven-release-plugin] prepare for next development iteration 2017-07-22 00:46:25 +00:00
Blacksmith
0e3163dd62 [maven-release-plugin] prepare release forge-1.6.1 2017-07-22 00:46:15 +00:00
Agetian
cb82da915c - Checking a list for empty is not needed for a "for" loop. 2017-07-21 12:35:22 +00:00
Agetian
a9f8c3c4a6 - Fix imports. 2017-07-21 05:46:38 +00:00
Agetian
355396dc47 - Fixed "Players can't sacrifice creatures to cast spells or activate abilities" not being restricted to the actual cost of spell/ability, causing e.g. Angel of Jubilation and Gatekeeper of Malakir (kicked) or Innocent Blood to not interact correctly. 2017-07-21 05:45:26 +00:00
Agetian
99315691dd - Do not reset playerXProperty to 0 in all cases (fixes Bloodghast, Guul Draz Specter and other similar cards that care for the player-based condition). 2017-07-19 15:03:47 +00:00
Hanmac
6a2cf634d0 GameAction: removed unused Unearth code 2017-07-18 15:53:47 +00:00
Agetian
d071c091fd - Put the NPE guard back in. 2017-07-18 03:59:14 +00:00