Commit Graph

2710 Commits

Author SHA1 Message Date
Hans Mackowiak
6fde7149a4 - Basic support for CountersMoveAi (e.g. The Ozolith) so at least it doesn't crash, needs improvement. 2020-05-27 00:17:28 +00:00
Michael Kamensky
1ced1058c9 Merge branch 'gameCacheRework' into 'master'
Human Play: try to remove usage of game.getCard

See merge request core-developers/forge!2804
2020-05-24 11:02:52 +00:00
Hans Mackowiak
ea26f6c689 Human Play: try to remove usage of game.getCard 2020-05-24 11:02:51 +00:00
Hans Mackowiak
74589d59e4 TokenAi: fix setting Owner of the Token to prevent NPE 2020-05-23 15:42:56 +02:00
Sol
933fe7ad49 Fix Mystic Barrier swallowing triggers 2020-05-22 05:22:11 +00:00
Agetian
3041788be1 - Fix DestroyAi hanging when considering auras that control AI's cards 2020-05-21 17:18:48 +03:00
Hans Mackowiak
d86aa31ab8 DigMultipleEffect: add extra ChosenZone to select N from the Chosen 2020-05-20 16:35:23 +00:00
swordshine
b7b2c88916 Merge branch 'jegantha' into 'master'
Jegantha

See merge request core-developers/forge!2802
2020-05-20 00:49:58 +00:00
Hans Mackowiak
0af1085f79 Effects: Effects that create Tokens now use common base class 2020-05-19 03:46:43 +00:00
friarsol
7966684424 Fix FindBestLand ai 2020-05-17 21:12:03 -04:00
Agetian
76ade204bb - Fix AI cheating with ChooseTypeEffect 2020-05-14 08:24:03 +03:00
friarsol
022875f07a Add "AI" for Companion choosing 2020-05-12 21:26:41 -04:00
rory
51e945df72 Merge branch 'master' into jegantha 2020-05-10 11:39:14 -07:00
rory
4eb21594b4 Jegantha, the Wellspring 2020-05-10 11:34:07 -07:00
Agetian
b0300edc9f - Fix NPE in chooseCardName (AI) 2020-05-10 19:03:01 +03:00
Blacksmith
98d80a1328 [maven-release-plugin] prepare for next development iteration 2020-05-05 16:05:39 +00:00
Blacksmith
2d3a538f6d [maven-release-plugin] prepare release forge-1.6.34 2020-05-05 16:05:31 +00:00
Hans Mackowiak
b964cc6448 add ChooseEvenOdd 2020-05-03 04:55:13 +00:00
Hans Mackowiak
3fe1aa45a2 Hunted Nightmare and AI fix 2020-05-01 04:26:03 +00:00
Hans Mackowiak
1ea93a6f2e Last state land fix 2020-04-28 05:24:49 +00:00
Agetian
2d355d4ea3 - Fix an issue with imprinting not working correctly in game states after the first game. 2020-04-27 20:18:35 +03:00
Hans Mackowiak
c2248ef905 Game: remove SpellAbilityCache 2020-04-27 10:32:17 +00:00
Hans Mackowiak
a9b5e1d112 Resolve "Used memory grows quadratic in the number of triggered spells" 2020-04-25 17:36:50 +00:00
Agetian
daa982389e - Add basic logic for Capricopian. 2020-04-22 21:05:37 +03:00
Agetian
37b7408163 - Improve support for AI casting Sorcery speed Adventure cards. 2020-04-22 19:16:30 +03:00
Agetian
67684fa4ec - Don't cut short when checking whether to run the AI trigger code if the triggered ability was pre-targeted in earlier checks before doTrigger is called. 2020-04-22 18:43:22 +03:00
Hans Mackowiak
0d1105377e SpellAbility: do xPaid inside spellAbility 2020-04-12 15:19:04 +00:00
Blacksmith
4cfcbaf603 [maven-release-plugin] prepare for next development iteration 2020-03-20 00:35:58 +00:00
Blacksmith
22dc1a27a0 [maven-release-plugin] prepare release forge-1.6.33 2020-03-20 00:35:52 +00:00
Hans Mackowiak
33d83dc0c5 Vote: replace hidden keywords with timestamped properties 2020-03-19 06:22:44 +00:00
Agetian
62a1ee6d3d - A basic AI logic hook for Timmerian Fiends 2020-03-14 19:23:37 +03:00
Hans Mackowiak
32b56018a6 GameAction: refactor setting CastSA 2020-03-10 07:13:04 +01:00
Agetian
e5d40554e1 - Error prevention on ID-based precast 2020-03-08 13:16:10 +03:00
Agetian
8b8e39ff41 - Added puzzles PS_THB6 and PS_THB7.
- Added a way to precast a spell from a specific host by ID.
2020-03-08 13:12:28 +03:00
Hans Mackowiak
9bbc3c8ef2 ControlGainAi: fix target logic for Witch Hunt 2020-03-02 06:59:33 +01:00
Hans Mackowiak
93f0ade107 MustBlockEffect: use Choose Card for Crashing Boars 2020-03-01 10:30:45 +00:00
Agetian
4880d70129 - Simple modification for AI PumpAll on Kenrith 2020-02-29 19:33:35 +03:00
Agetian
68ca9ec622 - Initial logic implementation for Mercenaries 2020-02-23 08:14:48 +03:00
Agetian
7c38ac7dfa - Fixed scripted targeting in GameState not remembering targets when necessary.
- Added puzzle PS_THB2.
2020-02-07 20:54:36 +03:00
Hans Mackowiak
1d71b1efea Magic stack spell ability fix 2020-02-07 04:06:54 +00:00
Agetian
0ca0458656 - Fix AI for Domri's Ambush.
- Don't reset targets on DamageDealAi if it's parented to an ability with valid number of targets set.
2020-02-06 20:33:56 +03:00
Agetian
78f3614c0a - Smaller life threshold for AILogic Rebirth. 2020-02-03 17:49:01 +03:00
Agetian
ae060a1b76 - MillAI logic for Rebirth. 2020-02-03 17:29:46 +03:00
Agetian
415e2a1623 - Remove the unneeded mandatory parameter. 2020-01-31 16:54:29 +03:00
Agetian
dff5962b8e - Check to make sure the cards are targetable by AI. 2020-01-31 15:05:56 +03:00
Agetian
cb3430b806 - Remove the unneeded mandatory check 2020-01-31 13:08:01 +03:00
Agetian
a86dad40c3 - DamageDealAi: target own indestructible stuff when able (if mandatory and has no better targets) 2020-01-31 12:46:32 +03:00
Agetian
04066b9bc2 - Fix DrawAi not accounting for pay costs on trigger 2020-01-31 12:34:05 +03:00
Agetian
6580883ccc - Improved DamageDealAi for mandatory triggers requiring a choice of planeswalker (e.g. Chandra, Artisan of Fire vs. a Hexproof opponent) 2020-01-31 09:58:51 +03:00
Hans Mackowiak
311eaa70e3 Use EnumSet in Conditions/Restrictions 2020-01-21 06:37:53 +00:00