Commit Graph

2505 Commits

Author SHA1 Message Date
Agetian
b43a313793 - Renamed two cards to match the current standard.
- Implemented basic AI playability of AssignGroup (Friend/Foe) cards based on NeedsToPlayVar.
- Will need separate AI logic for different cases to improve further (can be tested in canPlayAI).
2018-06-04 07:35:47 +03:00
Hanmac
dc7f692f38 Game: Counters Put effects need to have Putter as Source 2018-06-03 18:21:02 +02:00
Agetian
2a3456d0e2 - Corrected the base logic for AssignGroupAi.
- Added AILogic to Pir's Whim.
2018-06-03 07:58:34 +03:00
Agetian
01de70351b - Minor style fix. 2018-06-03 07:40:14 +03:00
Agetian
d002a9311c - Some logic update for Krav. Somewhat better handling of CostSacrifice inside DrawAi. 2018-06-03 07:37:03 +03:00
Hanmac
ccb5e6d6a5 AssignGroup API: use for Friend or Foe 2018-06-02 20:36:37 +02:00
Hanmac
e97b814089 chooseSingleSpellAbility has map params now 2018-06-02 20:34:04 +02:00
Agetian
176c5f1871 - Simple AI support for Krav, the Unredeemed. 2018-06-02 16:44:28 +03:00
Agetian
053726519c - Simple AI logic extension to make the Partner With commanders AI-playable. 2018-05-27 17:29:57 +03:00
Agetian
755d2476e0 - Move the methods in GameState a little. 2018-05-26 18:45:12 +03:00
Agetian
2de0a4d164 Merge branch 'master' of git.cardforge.org:core-developers/forge into agetian-master 2018-05-26 18:29:43 +03:00
Agetian
7653f50f9d - Support mana pool modification via GameState. Update PS_DOM4 accordingly. 2018-05-26 17:45:11 +03:00
Agetian
4e15c2ddd4 - GameState: improve to handle cards that enchant a player (Trespasser's Curse). 2018-05-26 16:47:13 +03:00
Hanmac
51a0a9e70a CardType: fixed seting specific SubTypes 2018-05-26 15:07:52 +02:00
Hanmac
3b5d273409 CounterEffects: use gameState and timestamp checks 2018-05-20 11:33:18 +02:00
Hanmac
c1da970c47 Card: move Abilities to Card and only create them once 2018-05-19 10:21:01 +02:00
Hanmac
790a461622 CardType: add removeArtifactTypes for Bludgeon Brawl
Equip: rework it to make Equip legendary creature better, also use AttachAi
2018-05-12 21:03:15 +02:00
Hans Mackowiak
fb1c545a98 Merge branch 'hasKeywordEnum' into 'master'
Card: add Keyword methods that work with Keyword Enum

See merge request core-developers/forge!535
2018-05-11 11:34:15 +00:00
Hanmac
852e12c903 AI: fixed isCounterable canPayCost 2018-05-10 15:44:23 +02:00
Hanmac
058aabb666 KeywordEnum: replace more String Keywords checks with Enums 2018-05-10 11:53:41 +02:00
Agetian
d13201fd47 - Tetzimoc CountersPutAi: don't try to target creatures which can't legally be targeted (e.g. Hexproof). 2018-05-09 15:12:30 +03:00
Agetian
82afad3b67 - Improve AI logic for Tetzimoc, Primal Death; ensure that the AI actually plays it (used not to play at all). 2018-05-08 20:11:47 +03:00
Blacksmith
f0ce6277ac [maven-release-plugin] prepare for next development iteration 2018-05-08 00:48:11 +00:00
Blacksmith
95bd867cee [maven-release-plugin] prepare release forge-1.6.10 2018-05-08 00:48:08 +00:00
Hanmac
91d80f49f4 Card: add Keyword methods that work with Keyword Enum 2018-05-06 16:54:53 +02:00
Michael Kamensky
e0b1bc7cd0 Merge branch 'asFlash' into 'master'
Code As through it has flash Effects

See merge request core-developers/forge!532
2018-05-06 08:56:15 +00:00
Agetian
e52b9d62f7 - AI should not attempt to cast MayFlashSac auras "as though they had flash" for now, it'll just always cast them in its own Upkeep and end up wasting them. 2018-05-06 11:10:42 +03:00
Hanmac
198e7adc47 MayFlashSac: rework using MayPlayNotSorcerySpeed 2018-05-06 08:55:10 +02:00
Hanmac
4cf79222f0 fix AiAttack with CHOSEN_FOG_EFFECT 2018-05-06 08:49:29 +02:00
Agetian
bd08c5ca9d - Clarification in AiCostDecision 2018-05-06 09:00:41 +03:00
Agetian
07c448ba16 - Fixed the AI failing to activate abilities such as Merchant's Dockhand which may tap the card in the process which the AI is considering for a tapXType payment (which may lead to a misplay or a loop/hang). 2018-05-05 18:41:10 +03:00
Sol
bfde06f0d6 Merge branch 'seravy-ai-fixes' into 'master'
Reformatted/revised AI updates from Seravy: Fog AI, Protection from chosen color AI

See merge request core-developers/forge!503
2018-05-04 00:35:07 +00:00
Agetian
62585848bd - Fixed the AI activating Jace, Cunning Castaway +1 too late. 2018-05-03 18:55:42 +03:00
Agetian
b6f55309ae - Some formatting. 2018-05-02 08:19:01 +03:00
Agetian
4afeaeb170 - Updating AiAttackController to use an AI hint SVar for Awakening and Prophet of Kruphix. 2018-05-02 08:04:31 +03:00
Sol
1a3308017a Revert "Merge branch 'temp_dev6' into 'master'"
This reverts merge request !499
2018-05-01 01:11:29 +00:00
Sol
64e8dd35c2 Merge branch 'temp_dev6' into 'master'
Allow for Seeded RNG in simulation games!

See merge request core-developers/forge!499
2018-05-01 01:01:30 +00:00
Agetian
f8beba2815 - Style fix related to the previous merge. 2018-04-30 19:59:36 +03:00
Agetian
8c325d8264 - Style update. 2018-04-30 09:40:53 +03:00
Agetian
9aec30e0dc - FogAi update from Seravy (updated for style consistency). 2018-04-30 09:36:31 +03:00
Agetian
5049b7885a - FogAi update from Seravy (updated for style consistency). 2018-04-30 09:32:24 +03:00
Agetian
9a206ff338 - Some style and logic fixes. 2018-04-30 08:49:20 +03:00
Agetian
4f487f3009 Merge branch 'FlickeringWard' of git.cardforge.org:Seravy/forge into seravy-ai-fixes 2018-04-30 08:36:46 +03:00
Michael Kamensky
d7a55e4c7d Merge branch 'ProtectionSelf' into 'master'
AI will use non-targeted Protection abilities.

See merge request core-developers/forge!245
2018-04-30 05:32:22 +00:00
Meerkov
e421a32475 Style fixes for discussion.
(cherry picked from commit 3ae95447a2a91a36bd1772649592ef72ffb344f8)
2018-04-30 02:07:25 +00:00
Sol
ab2d284dee Merge branch 'temp_dev5' into 'master'
Remove unusual "reproducable" attack declaration from AI

See merge request core-developers/forge!498
2018-04-30 00:16:30 +00:00
Chris H
758dbb689a When playing non-team matches, display Player name as winner in Game Recap screen 2018-04-28 23:22:23 -04:00
Meerkov
c6cab341ed Organize some imports.
(cherry picked from commit 70cf1ad3d0a6449d67b8ed84c9ebf0da4fd13547)
2018-04-28 17:01:54 +00:00
Meerkov
bd097888a3 Allows running tests using a seeded RNG.
Running the same game twice now works! There may be issues I haven't found with certain AI behaviors around mechanics I didn't use in my tests.


(cherry picked from commit 194b47c1ad61c8f1efb6bce8af2bb10d1fa8f6c3)
2018-04-28 17:00:54 +00:00
Meerkov
eae90194cb AiAttackController no longer has reproducable attack thoughts.
I don't see why we would want this to be seeded with the same number. I think it's incorrect thinking so I'm removing it.


(cherry picked from commit 2881effd577abe9500b8fa3a5699067b0c3541f3)
2018-04-28 16:55:05 +00:00