Commit Graph

2165 Commits

Author SHA1 Message Date
Michael Kamensky
1e0676562d Merge branch 'dom-puzzles' into 'master'
Added puzzle PS_DOM9 and improved PS_DOM4.

See merge request core-developers/forge!678
2018-06-26 05:38:29 +00:00
Agetian
66c4769d78 - Added a way to add persistent mana in game states (for puzzles).
- Added basic logic for Evra, Halcyon Witness.
- Added puzzle PS_DOM9.
- Improved implementation for puzzle PS_DOM4.
2018-06-26 08:36:06 +03:00
Rob Schnautz
426e452ab5 convert tabs to spaces 2018-06-25 21:56:24 +00:00
Rob Schnautz
8e54b0e742 Reduce method call count. 2018-06-24 21:18:33 +00:00
Agetian
efe493d179 - Unify AI logic checks. 2018-06-24 09:17:01 +03:00
Agetian
f192e1cf27 - Different logic update, seems more appropriate. 2018-06-22 13:26:34 +03:00
Agetian
07383f7c4c - Minor code tweak. 2018-06-22 12:07:20 +03:00
Agetian
4498547824 - Remove unused code. 2018-06-22 12:06:17 +03:00
Agetian
bd7da33e77 - Fix logic in DamageDealAi, update logic for Chandra, Fire of Kaladesh. 2018-06-22 12:04:08 +03:00
Hanmac
59c95f2ccf SpellAbility: do not reset the PaidHash for copied spells 2018-06-22 08:22:25 +02:00
Agetian
708c43edbf - Fix AI spam related to Tetsuko, Umezawa Fugitive. 2018-06-15 10:25:01 +03:00
Agetian
ebe7d72789 - AttachAi: fix parameter source in pump target P/T calculation 2018-06-15 10:16:04 +03:00
Hanmac
78f652dd43 FightAi: hotfix for cards like Arena 2018-06-15 08:03:52 +02:00
Agetian
07d2b0aaf3 - PS_DOM7: better implementation. 2018-06-12 09:30:41 +03:00
Blacksmith
e2c57c0973 [maven-release-plugin] prepare for next development iteration 2018-06-10 00:42:03 +00:00
Blacksmith
6ec968cd85 [maven-release-plugin] prepare release forge-1.6.11 2018-06-10 00:42:00 +00:00
Michael Kamensky
a89106211f Merge branch 'FriendOrFoe' into 'master'
Friend or foe

See merge request core-developers/forge!619
2018-06-08 08:00:43 +00:00
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