Commit Graph

3292 Commits

Author SHA1 Message Date
drdev
3538823e11 Swap out old GameView structure for new one 2014-10-10 05:52:18 +00:00
Sloth
94b81a6ec9 - Fixed AI not playing Sarkhan, the Dragonspeaker in Main1. 2014-10-09 20:07:30 +00:00
drdev
6c95af229a Support storing commander and commander damage in player view 2014-10-09 00:33:38 +00:00
Sloth
fcada08599 - Improved AI's doAssault function. 2014-10-08 18:07:48 +00:00
Sloth
ad0921ecbe - Added AI support for Tyrant's Choice. 2014-10-08 14:59:23 +00:00
Sloth
9872b3c9d3 - Improved AI handling Glacial Fortress and friends. 2014-10-08 11:41:57 +00:00
Sloth
9c5e6beefa - Added a new AI SVar "FreeSpellAI" which makes the AI play these cards before other spells. 2014-10-08 11:03:31 +00:00
drdev
75d1f5dea6 Add CardCollection class and special methods to CardView to make it easier to track changes to collections and make it possible to prevent changes outside Card class
Add delayed initialization of certain collection fields to Card to reduce memory usage and improve performance
2014-10-06 23:12:49 +00:00
drdev
44664bd30e Optimize the logic around for attaching cards to other cards/players 2014-10-06 15:12:02 +00:00
drdev
afcad4e672 Commit stage 1 of large game view refactoring 2014-10-06 04:06:42 +00:00
Sloth
e599aef134 - Added basic AI support for Necropolis Fiend. 2014-10-05 21:02:45 +00:00
swordshine
2428a6b0b1 - A better fix for ComputerUtilCard.applyStaticContPT() 2014-10-04 12:31:09 +00:00
excessum
f7e8d51701 - Fixed typo in r27822 2014-10-04 12:23:34 +00:00
excessum
2f49deed12 - Fixed NullFormatException with ComputerUtilCard.applyStaticContPT() 2014-10-04 12:22:27 +00:00
excessum
135a11fb3d - Fixed bug with AI using double-strike damage when trying to kill an attacker in the first-strike phase with gang-blockers 2014-10-04 11:52:02 +00:00
Chris
e0aca90d0e [maven-release-plugin] prepare for next development iteration 2014-10-03 17:50:03 +00:00
Chris
3285529e9f [maven-release-plugin] prepare release forge-1.5.28 2014-10-03 17:49:48 +00:00
drdev
9391b0b486 Refactor logic that reveals cards before selecting a card so that it will be possible to combine the dialogs later 2014-10-03 10:32:16 +00:00
Sloth
3ea9e25c66 - Added AI support for Fume Spitter. 2014-10-02 19:00:58 +00:00
excessum
82e7d6a1e4 - Re-implemented Convoke shard mapping for AI 2014-10-02 12:34:11 +00:00
excessum
214c929ca3 - Re-factored payManaCostFromPool() out from payManaCost() 2014-09-29 12:36:33 +00:00
elcnesh
9ce50662fe Fix counter placement sound playing repeatedly. 2014-09-29 09:08:45 +00:00
Sloth
97a46fae15 - Fixed several bugs in isPreferredTarget. 2014-09-28 21:35:46 +00:00
excessum
f9a4cd63d7 - AI will now take note of static P/T abilities when using Animate and Pump effects 2014-09-28 02:53:03 +00:00
excessum
4b51b0f9e7 - Simplified removal of likely blockers in chooseCardsForConvoke() 2014-09-28 01:10:06 +00:00
Sloth
14f31bfabe - Improved ordering in playReusable. 2014-09-27 20:23:04 +00:00
Sloth
422271ab4d - Fixed NPE when AI's Goblin Arsonist dies. 2014-09-27 20:17:32 +00:00
excessum
1cd69ebcb3 - Implemented AI for Convoke 2014-09-27 15:12:38 +00:00
excessum
3c9d6645e4 - Re-factored AiBlockController.assignBlockers() overloads and associated utility functions. 2014-09-27 15:03:11 +00:00
excessum
2f70494c14 - AI will now consider multi-blocks before attacking (avoid 1/4 lifelink attacking two 2/2s) 2014-09-24 13:27:35 +00:00
excessum
7226e24cf5 - Moved canBeBlockedProfitably() from AiBlockController to ComputerUtilCard 2014-09-24 13:12:52 +00:00
excessum
14c4b95658 - Re-factored AiBlockController.shouldThisBlock() into ComputerUtilCard.doesSpecifiedCreatureBlock()
- Changed Outlast AI to use doesSpecifiedCreatureBlock()
2014-09-24 13:04:46 +00:00
swordshine
edf8c58754 - Added Ashcloud Phoenix 2014-09-23 11:21:15 +00:00
drdev
8264fd8075 Support earning Planeswalker ultimate achievements 2014-09-23 08:53:28 +00:00
excessum
d2415c7aa5 - Fixed bug with AI failing to activate Deathtouch in combat 2014-09-22 12:27:38 +00:00
Sloth
44aed6b85d - Added AI support for Duneblast. 2014-09-22 07:25:46 +00:00
Sloth
59949eea96 - Added AI support for Barrage of Boulders. 2014-09-21 20:44:08 +00:00
Sloth
b1c07c8f7a - Added AI support for Crackling Doom. 2014-09-21 20:08:01 +00:00
excessum
244293c119 - Added check for Ferocious when using Savage Punch 2014-09-21 03:43:17 +00:00
excessum
46033d55a9 - Implemented AI for Crater's Claws 2014-09-21 03:38:15 +00:00
Sloth
c5a44c9b04 - Fixed a rare bug in knownOriginCanPlayAI (Norin the Wary bug). 2014-09-20 12:27:34 +00:00
excessum
c8b57e90ed - Extended OblivionRing logic for Suspension Field
- Implemented rudimentary logic for Outlast
- Fixed mana cost for Dazzling Ramparts
2014-09-20 10:24:43 +00:00
Agetian
072a0941e1 - Make a default value in AiProps correspond to the value set in the Default AI profile. 2014-09-20 08:03:11 +00:00
Agetian
5549604d0d - Tweak spell prediction when deciding whether to move equipment or not.
- Enable spell prediction (works for AttachAi only at the moment).
- The Default AI profile will only move equipment from one creature to another if the one it's currently attached to is useless, but will consider it a priority task to move equipment away from useless creatures.
- The Reckless AI profile will always move equipment from worse creatures to better ones but will prioritize getting as many threats and other permanents out before moving creatures around (currently - even if the creature the equipment is attached to was rendered useless).
2014-09-20 08:01:58 +00:00
Agetian
2abcc7c951 - Disable spell prediction for PumpAi. 2014-09-20 07:30:21 +00:00
Agetian
68f35d3a6f - Reverted some of the modifications related to the way spell prediction works (canPlaySa can't currently be a part of the process).
- Limited predictSpellToCastInMain2 to idenitifying permanents to put on the battlefield only.
- For now, keep spell prediction disabled until the conditions and effects are tested well enough and do not cause the AI to prevent itself from performing other priority tasks.
2014-09-20 07:24:12 +00:00
excessum
32a3f5964e - Implemented AI for Launch the Fleet 2014-09-20 07:10:18 +00:00
excessum
3abb197fca - Fix for zero division error in PumpAiBase 2014-09-20 02:22:09 +00:00
Sloth
a19c05ca56 - Improved blocking AI for blockers that don't survive until the next turn anyway (due to Vanishing or Fading). 2014-09-19 22:22:17 +00:00
Agetian
cdcb9c84be - Added a way to disable predictive analysis for spells in Main 2 via an AI property PREDICT_SPELLS_FOR_MAIN2 (currently prediction is enabled by default for all profiles). 2014-09-19 04:39:44 +00:00