Commit Graph

26654 Commits

Author SHA1 Message Date
Sloth
efd9c0ed74 - Updated some AI SVars and fixed a typo. 2014-09-18 20:46:58 +00:00
Sloth
6103f9f87d - Updated blockdata and TypeLists. 2014-09-18 20:38:04 +00:00
Sloth
348591b966 - Merged KTK branch into trunk. 2014-09-18 20:03:04 +00:00
drdev
b1065c4328 Fix tooltip width 2014-09-18 19:39:34 +00:00
drdev
27f695963d Remove unnecessary period 2014-09-18 18:28:19 +00:00
drdev
b6222582fa Add support for displaying achievement earned dialog nicer 2014-09-18 18:25:59 +00:00
elcnesh
0d006b6ab6 Add a lot of comments to the view classes and remove a deprecated method. 2014-09-18 16:55:40 +00:00
drdev
ede7931deb Fix order more properly 2014-09-18 14:59:24 +00:00
drdev
076b87ab32 Fix achievement order 2014-09-18 14:58:07 +00:00
elcnesh
617f5d0889 Fix to prevent some concurrency issues. 2014-09-18 14:53:47 +00:00
Agetian
5a45730a0f - Return default property values from AiController.getIntProperty and AiController.getBooleanProperty in case of an erroneous call. 2014-09-18 14:50:44 +00:00
Agetian
b39ac29746 - Prevent NumberFormatException when AI properties are queried from runAsAi. 2014-09-18 14:42:34 +00:00
drdev
25842fe5ca Fix so Magic card back doesn't show through for transparent trophy 2014-09-18 14:37:59 +00:00
excessum
55dbe5bc09 - Changed isEffectiveAttacker() to ignore ability pumps.
- Reworked attack pumps for attackers
2014-09-18 13:23:08 +00:00
Sloth
3d85c7c791 - The AI will now take "CARDNAME can't be blocked except by three or more creatures." into account when attacking. 2014-09-18 12:34:49 +00:00
excessum
f37835b7d0 - Fixed PumpAiBase.pumpedCreature() not copying the attack/defense bonuses of the target creature. This should fix the AI's inability to apply repeatable attack/defense pumps. 2014-09-18 12:02:40 +00:00
Agetian
cf70a969b1 - At least for now, added an AI profile property RESERVE_MANA_FOR_MAIN2_CHANCE that indicates a chance that the AI would want to reserve mana for a main 2 phase spell. Currently set to 0 for all profiles (the AI will not reserve mana).
- The AI will obey mana reservations either if the spell ability is explicitly marked as low priority with SVar LowPriorityAI or, if it's not marked as low priority, depending on the random chance as specified in RESERVE_MANA_FOR_MAIN2_CHANCE.
2014-09-18 11:47:45 +00:00
Agetian
50553802e7 - Fixed the previously inverted logic. 2014-09-18 08:50:14 +00:00
Agetian
a902f5f1e7 - For now, ignore mana source reservations unless the AI has explicitly specified that the spellability is of low priority. 2014-09-18 08:46:16 +00:00
elcnesh
ac4a6049a5 - Hopefully reduce the P/T flickering.
- Assign a random negative int to each hidden CardView to prevent awt from crashing.
2014-09-18 08:26:42 +00:00
Agetian
1ea2b9d034 - Allow the AI to correctly predict the ability to cast a certain spell in Main 2 phase with the canPlaySa logic. 2014-09-18 08:05:37 +00:00
Agetian
57403ff053 - canPlay does not work as intended in context, removing for now. 2014-09-18 07:52:54 +00:00
Agetian
435adf41d9 - Removed a debug comment. 2014-09-18 07:46:20 +00:00
Agetian
67649130c7 - Modified the logic of Main 2 spell prediction to account for canPlay() 2014-09-18 07:42:35 +00:00
Agetian
973a7b6bc6 - For now, do not reserve mana for spells when deciding whether to pump/not to pump a creature (hopefully will get the AI screwed over in fewer cases than otherwise :) 2014-09-18 07:36:07 +00:00
Agetian
20b9b6fa17 - Fix the blocker targeting arrows not appearing in time because the declared blockers were not passed to the combat view until the blockers were finalized (please review). 2014-09-18 06:59:31 +00:00
drdev
547b570406 Refactor achievements to use new trophy style and offer 4 tiers 2014-09-18 05:39:47 +00:00
Agetian
69bc6d5ac4 - Fix the extra tap events firing from the Pump AI. 2014-09-18 05:15:38 +00:00
Sol
554f9cfc6f - Fixing toughness bonus for Spur Grappler 2014-09-18 00:49:15 +00:00
Krazy
23ff256892 Fixed Typo 2014-09-17 23:33:54 +00:00
Krazy
2ce558c3f4 Removed debugging line. 2014-09-17 23:22:13 +00:00
Krazy
bb1f61a2a9 Added support for Kin-Tree Invocation (KTK). 2014-09-17 23:11:15 +00:00
Agetian
f9bbaef92b - Attempt to fix the concurrent modification exception related to card extrinsic hidden keywords by using a thread-safe array list. 2014-09-17 19:37:01 +00:00
Agetian
5cec620a9f - Make sure that the AI does not randomly move the same equipment around from creature to creature within the same turn (the related logic is currently used in the Reckless AI profile). 2014-09-17 18:48:07 +00:00
Agetian
570b90b859 - Mistype fix, clarification. 2014-09-17 15:46:51 +00:00
Agetian
d06edd2ed3 - Attempt to fix NPEs related to SpellAbilityRestrictions queried with no activator set for the spell ability. 2014-09-17 15:38:19 +00:00
elcnesh
e710743a3b Fix cards showing up black and NPE's related to CardPanel. 2014-09-17 14:53:55 +00:00
Sloth
51b3d723b9 - The Prowess keyword will now set a BuffedBy SVar for the AI. 2014-09-17 13:39:38 +00:00
elcnesh
f75a2a8888 Fix displaying CARDNAME instead of the card name in SpellAbilities. 2014-09-17 08:42:40 +00:00
Sloth
7f0140332a - Updated the quest opponent Fred Flintstone 3. 2014-09-17 08:07:10 +00:00
elcnesh
8702eefb01 Fix "Play with top of library revealed" cards a prevent a possible NPE. 2014-09-17 07:36:40 +00:00
Sloth
c1f630dca6 - Updated some AI SVars. 2014-09-17 07:15:52 +00:00
drdev
12c6d98ec7 Add hover tooltip for achievement info 2014-09-17 05:28:40 +00:00
drdev
539a74b874 Support outlining the hovered achievement 2014-09-17 05:00:35 +00:00
drdev
2ab70d64c4 Fix selection issue 2014-09-17 04:44:24 +00:00
drdev
57e1cfe6b3 Simplify the way custom achievement images are loaded 2014-09-17 04:30:24 +00:00
drdev
69255650a8 Refactor shared parts of certain descriptions into separate field so it can be displayed on its own line 2014-09-17 04:13:17 +00:00
drdev
2a871c2525 Add Blackjack achievement 2014-09-17 03:46:35 +00:00
drdev
bf7832c14d Prevent multiple thread queues for loading custom achievement images on startup 2014-09-17 03:15:04 +00:00
Sol
ba3b6cbce0 - Adding purchase restrictions for Quest Pet based on the user's level 2014-09-17 03:04:52 +00:00