Commit Graph

906 Commits

Author SHA1 Message Date
Myrd
7303d132de Fix AbilityManaPart.canProduce() for Command Tower. This has the effect of being able to Auto-pay using Command Tower and also lets AI correctly figure out it can tap it for any of those colors as well (affects both heuristic and simulated AI). 2016-01-01 23:46:16 +00:00
Myrd
b189fd5ff9 Fix division by zero error in PossibleTargetSelector. 2016-01-01 22:06:13 +00:00
Myrd
0b95d357d3 Working on new codepath for instantiating card copies that doesn't go through the expensive fromPaperCard() route. 2016-01-01 19:41:43 +00:00
Myrd
b43c481b2b Add a TODO to game sim code. 2016-01-01 19:06:16 +00:00
Myrd
5d334e113e Fix Dark Depth's trigger not activating until next phase when it gets copied via a Thespian's Stage. Also, remove the previously-added work-around for this in GameSimulator. 2016-01-01 18:12:03 +00:00
Myrd
82801af655 Make AI pick correctly for Dark Depths copy trigger. Also, add a test for simulation code to correctly simulate this as well with a test. Currently, there's a TODO because it's not clear to me why we need to check static effects twice. 2015-12-31 23:40:08 +00:00
Myrd
7bef90ad2d [AI Simulation] Fix cast exception when AiAttackController is being used to predict the human's attack. 2015-12-31 21:31:41 +00:00
Myrd
beaebddc86 Fix GameSimulatorTest and add a testcase I forgot to add before. 2015-12-31 20:33:14 +00:00
Myrd
c3d6051e08 Fix: Dryad Arbor has no mana cost, so it shouldn't be possible to unmanifest it. 2015-12-31 16:43:17 +00:00
Sol
ff73eb78eb - Synchronize nomenclature of Generic Cost
- Add new Colorless Cost
- Start displaying of colorless mana with new symbol (with backwards compatibility for existing scripts that produce "{1}" instead of "{C}")
2015-12-29 16:37:22 +00:00
excessum
2b5cafe1c8 - Fixed NPE in DrawAi for r30501 2015-12-21 12:04:05 +00:00
excessum
d624557a73 - Implemented AI for Painful Truths 2015-12-16 12:28:33 +00:00
Sloth
ce9eb0b02c - More fixeing the check in isPreferredTarget AI function. 2015-12-12 21:49:15 +00:00
Sloth
e91a069b2b - Fixed a check in isPreferredTarget AI function. 2015-12-12 21:27:43 +00:00
Sloth
723e58b2b3 - Fixed AI sometimes not using ciphered or replicated spells. 2015-12-12 16:53:23 +00:00
Sloth
05511671f9 - The AI will now use Multikicker for Permanents. 2015-12-11 07:53:19 +00:00
excessum
a1c9cea8af - Fixed NPE for r30413 and r30414 2015-11-29 05:32:20 +00:00
excessum
c7a75432ce - Addendum to r30413 for cases where other effects are on the stack 2015-11-29 03:12:32 +00:00
excessum
ee6386adb0 - Removed phase restrictions for AI usage of fight effects from PumpAi 2015-11-29 02:52:40 +00:00
Sloth
0e22a9d4fe - Little AI slowdown prevention improvements. 2015-11-27 22:24:05 +00:00
Agetian
ad3859d20c - Prevent a class cast exception when the AI is considering how to assign blockers (the mystery is, however - why does it even try calling it with the human controller in the first place though?...) 2015-11-27 19:27:00 +00:00
Sloth
96dac6e8f5 - Reckless AI's will now trade more willingly when blocking. 2015-11-27 07:43:27 +00:00
Sloth
6e09f5dd9a AI Profile update:
- Quest opponents can now have a Profile assigned in their metadata.
- Opponents with the Reckless profile will now attack more aggressively.
- Opponents without Profile will have the Default Profile (and not a random one).
2015-11-24 08:55:51 +00:00
Sol
5527f6fc6d - Counters moved from being on Card to on GameEntity allowing Poison + Experience Counters to work the same as other counter types
- Improved some PlayerView updates which weren't re-writing player detail hoverbox often enough
2015-11-18 20:19:32 +00:00
Sol
022041a2f6 - Allowing Charms to have subAbilities be chosen more than once (AI support needs improving to actually filter through all the permutations) 2015-11-10 03:10:53 +00:00
Chris
de7058ca46 [maven-release-plugin] prepare for next development iteration 2015-11-06 20:38:00 +00:00
Chris
de3658d504 [maven-release-plugin] prepare release forge-1.5.47 2015-11-06 20:37:52 +00:00
excessum
411039b779 - Added check in DamageDealAi for planeswalkers 2015-11-01 07:34:25 +00:00
excessum
ab8c60646b - Added check in ControlGainAi for planeswalkers 2015-11-01 06:56:47 +00:00
excessum
9c7bffda35 - Added check in useRemovalNow for planeswalkers 2015-11-01 06:49:40 +00:00
Sloth
ada78ce388 - Added AI support for the Time Vault + Voltaic Key combo. 2015-10-30 21:58:17 +00:00
Sloth
334ab93d7b - Fixed AI being afraid of his own Circle of Flame. 2015-10-26 07:57:17 +00:00
excessum
417a228b83 - Added check for safe targets for triggers in CountersPutAi 2015-10-24 03:17:58 +00:00
Sloth
9102e9c964 - Added basic AI support for Fell the Mighty. 2015-10-21 20:40:12 +00:00
excessum
da758eff60 - Implemented AI for first ability (prevent damage) of Dromoka's Command 2015-10-18 12:35:46 +00:00
excessum
7a1d8ab146 - Implemented AI for Jace, Vryn's Prodigy 2015-10-18 04:39:39 +00:00
excessum
0e08c72205 - Fixed NPE from r30296 2015-10-17 07:26:15 +00:00
excessum
db3286bec6 - Revamped Planeswalkers logic: evaluate more expensive abilities first to prevent spamming of good "plus" abilities, try not to "minus" all loyalty if not under threat
- Added flag in TokensAi to allow Planeswalkers to create tokens in Main1
- AI can now use all the abilities of Gideon, Ally of Zendikar
2015-10-17 07:00:45 +00:00
excessum
5aabcb5089 - Fixed whitespace for r30289 and added check for source of loot spell 2015-10-15 12:09:46 +00:00
excessum
2f7ebf615b - Implemented basic AI for looter effects 2015-10-14 12:59:04 +00:00
excessum
2766b50a71 - Extended canFightAi to consider Prowess buff 2015-10-12 13:20:02 +00:00
excessum
f0c751417b - Re-factored logic for Fight effects 2015-10-12 12:53:49 +00:00
excessum
71e417dd8a - Implemented AI for more Converge cards 2015-10-11 09:31:41 +00:00
excessum
94b6f67815 - Re-factored getSourcesForShards() out from payManaCost() 2015-10-11 08:26:53 +00:00
excessum
7dd216545d - Implemented AI for auto-payment of Converge/Sunburst costs 2015-10-11 07:25:08 +00:00
Sloth
689c95a92c - Fixed, improved and refactored AI combat predictions reagarding blocks/becomes blocked triggers. 2015-10-09 11:03:28 +00:00
excessum
c1eb95981d - Implemented AI for Atarka's Command 2015-10-07 13:10:36 +00:00
Sloth
79c5e3efe1 - The AI will now be aware of the effect of Bazaar of Wonders. 2015-10-06 08:10:23 +00:00
Sloth
e949f2cd20 - Fixed a little mistake in chooseBestLandToPlay. 2015-10-05 20:39:13 +00:00
Sloth
374a78604e - The AI will now be aware of Chalice of the Void and Presence of the Master. 2015-10-05 12:54:27 +00:00