Commit Graph

3035 Commits

Author SHA1 Message Date
Hans Mackowiak
c04ccdaf7c Card: combine PT boost into one Map using timestamp 2019-09-01 05:39:09 +00:00
Michael Kamensky
b28cd601fd Fix AI inverse logic when resetting the paid hash before playing a SA 2019-08-24 05:51:32 +00:00
swordshine
47a1b6ea98 Merge branch 'patch' into 'master'
C19 cards

See merge request core-developers/forge!2042
2019-08-20 12:20:57 +00:00
Agetian
c823a493bb - Basic AI for payments via K'rrik's static ability. 2019-08-19 09:25:50 +03:00
swordshine
cf9256ddf8 Add Wall of Stolen Identity 2019-08-18 15:16:22 +08:00
Hans Mackowiak
1303991ee7 CostSacrifice: allow X as amount 2019-08-14 17:33:06 +00:00
Hans Mackowiak
581e05c01d EndCombatPhase: add way to end combat phase by effect 2019-08-13 05:35:29 +00:00
klaxnek
9aaaf93062 Fix variable memSet might not have been initialized 2019-08-10 14:07:03 +02:00
klaxnek
d04fae8e96 More SonarQube detected bugs fixed:
- Use try-with-resources in AutoCloseable objects.
- End this switch case with an unconditional break, return or throw statement.
- A "NullPointerException" could be thrown.
- Use the "equals" method if value comparison was intended.
- Correct this "&" to "&&".
2019-08-10 13:57:06 +02:00
Hans Mackowiak
f08432273c Manifest: add Choices 2019-08-10 10:44:53 +00:00
klaxnek
2534c2c27a Fixes some SonarQube detected bugs:
1. Use try-with-resources in AutoCloseable objects
2. Use the "equals" method if value comparison was intended.
3. Fixed getting the cheapest mana card in getCheapestPermanentAI.
2019-08-10 12:15:17 +02:00
Hanmac
773f2b280f Loyalty: use String Property for X 2019-08-01 21:16:07 +02:00
Hanmac
6cf5a08be2 Card: remove non hidden extrinsic keyword 2019-07-28 20:00:11 +02:00
Agetian
edbf3801f8 - Somewhat better logic for Risk Factor. 2019-07-22 19:50:56 +03:00
Hans Mackowiak
ef0af2d769 Woodland Champion: add ChangeZoneAll Trigger to Token Effects 2019-07-22 05:18:49 +00:00
swordshine
13b4fd2600 Fix getBestPlaneswalkerToDamage (new chandra's ultimate has a -X cost, which cannot be handled by the convertAmount method) 2019-07-21 16:26:36 +08:00
Hanmac
4182ad7395 DigEffect: remove AndOrValid 2019-07-14 05:59:04 +02:00
Agetian
f6ae65d901 - Basic AI support for DigMultipleEffect
- Reveal fix in DigMultipleEffect
2019-07-12 19:09:12 +03:00
Hanmac
371379def8 DigMultipleEffect: new effect for Kaalia 2019-07-11 07:18:42 +02:00
Hans Mackowiak
3ca71ccd7b - Basic AI for the revised Replicate and Conspire (will currently mimic the old behavior of paying as much as possible, to be improved) 2019-07-08 09:52:20 +00:00
Blacksmith
9a12564054 [maven-release-plugin] prepare for next development iteration 2019-07-08 00:55:54 +00:00
Blacksmith
118e86ec92 [maven-release-plugin] prepare release forge-1.6.27 2019-07-08 00:55:48 +00:00
swordshine
a2332addae Fix an AI cheat when using ExceptSelf logic 2019-06-30 22:56:12 +08:00
Agetian
3ef5e82c46 - Somewhat improve the AI for combat pumps coming from permanents 2019-06-21 20:49:30 +03:00
Agetian
12e3dd2198 - Improve the AI for combat pumps when it comes to timing the activation. 2019-06-21 18:55:57 +03:00
Agetian
769a3f6dd8 - Remove empty line. 2019-06-18 22:32:23 +03:00
Agetian
ecd48916c0 - Restore functionality for remove sickness and choose cards 2019-06-18 22:31:45 +03:00
Agetian
9831995db3 - Patch GameState to work with the latest changes. 2019-06-18 22:24:57 +03:00
Agetian
78e78bb3d5 - Added puzzle PS_GRNS (Survive the Turn: GRN edition).
- Currently doesn't work well because the AI doesn't prioritize cards in such a way that they would play the cards in such a way they'd actually win on their first turn.
2019-06-18 22:18:41 +03:00
Agetian
4b38c614fa - Improve logic for Ajani, the Greathearted. 2019-06-18 19:57:44 +03:00
Agetian
077bfc4fdf - Added AI cast preference to Mass Hysteria and Concordant Crossroads 2019-06-17 19:08:14 +03:00
Agetian
7b8e59810c - Somewhat better logic for Might of Old Krosa and Arrester's Zeal, allowing the AI to use them in Main 1 in overwhelming situations. 2019-06-16 17:20:40 +03:00
Agetian
80946ca88f - Fix a logic error in TapAllAi 2019-06-16 12:59:06 +03:00
Agetian
379e866424 - Improve AI playability checks for Kicker costs 2019-06-15 09:52:02 +03:00
Michael Kamensky
bf38dac8c8 Added a test for Necrotic Ooze copying Basking Rootwalla's ability from a graveyard. 2019-06-14 15:28:53 +00:00
Rob Schnautz
249649dbaa Merge branch 'master' into 'deprecation-cleanup'
# Conflicts:
#   forge-ai/src/main/java/forge/ai/ability/DiscardAi.java
#   forge-ai/src/main/java/forge/ai/ability/RearrangeTopOfLibraryAi.java
2019-06-13 22:10:10 +00:00
Blacksmith
560fdf1a46 [maven-release-plugin] prepare for next development iteration 2019-06-12 20:13:01 +00:00
Blacksmith
2974f6a7c3 [maven-release-plugin] prepare release forge-1.6.26 2019-06-12 20:12:56 +00:00
Agetian
09e0967c37 - Fix London Mulligan AI 2019-06-12 13:32:19 +03:00
Agetian
06abfc1f14 - Improved London Mulligan AI
- Also tweaked Goatnap to use AddKWs
2019-06-12 11:00:48 +03:00
Agetian
23b8b91a20 - Fix kill spell prediction for wrapped abilities (fixes AI for Munitions Expert) 2019-06-12 09:49:14 +03:00
Agetian
b772b08d03 - A more traditional name for the AI logic 2019-06-12 08:01:35 +03:00
Agetian
25995db862 - Fix the AI logic for Hunt the Weak 2019-06-12 07:59:09 +03:00
Agetian
cfed38f4f1 - DamageDealAi: fix a crash and logic error for cards like Expansion // Explosion, Chamber Sentry, etc. 2019-06-11 15:19:32 +03:00
Agetian
6115c0cc45 - Fix RevealAi logic "Kefnet" 2019-06-11 09:08:44 +03:00
Michael Kamensky
caf6c73b7d Fix Sorin, Vengeful Bloodlord and implement a basic AI for it. 2019-06-09 14:08:32 +00:00
Agetian
597bcd17c8 - Fix the AI incorrectly considering valid targets in RearrangeTopOfLibraryAi. 2019-06-09 14:37:10 +03:00
Agetian
3dc6cc9795 - Various AI attack logic improvements (consider only valid blockers when evaluating shouldAttack, don't judge by canKillAllDangerous if dangerous creatures aren't among the potential defenders) 2019-06-09 14:36:44 +03:00
Agetian
d622e6c8fc - ChangeZoneAi: use the new targeting restriction 2019-06-09 14:35:06 +03:00
Hans Mackowiak
3644b8f74f MH1 Slice onto instance or sorcery 2019-06-09 09:22:57 +00:00