Commit Graph

1010 Commits

Author SHA1 Message Date
Agetian
ff89390820 - Reverted r32268, doesn't work nearly as well as expected (main problems: if nothing is sacrificed, the creature still gets counters; the AI will happily sac a much more powerful creature instead of deciding not to sac anything if it has e.g. one other creature on the battlefield). 2016-10-05 10:10:06 +00:00
Agetian
4496371a75 - Attempted to fix Harvester Troll AI, currently by adding an extra AI logic parameter that makes the AI skip the ETBing card itself when considering what to sacrifice.
- This should ideally be somehow generalized (e.g. somehow detect that an ability is an ETB ability which is either optional or has other possible targets?) and automatically work for all creatures that have an ETB sacrifice ability. A more generic solution would be highly appreciated.
2016-10-05 09:07:03 +00:00
Hanmac
396f3d4096 DamageDealAI: fixed source for Energy Counter 2016-10-04 12:37:25 +00:00
excessum
04fd286627 - Implemented AI for Harnessed Lightning 2016-10-04 12:20:24 +00:00
excessum
2ecfa4259d - Re-factored Vehicle animation logic into ComputerUtilCost.canPayCost() 2016-10-03 12:30:46 +00:00
Hanmac
28fd48e8d2 ComputerUtilCombat: canCrew now checks if the creatures can crew a vehicle, also use CardLists functions to clean up the code 2016-10-03 08:09:48 +00:00
Sol
76c4a7725e - Add very basic logic for Divine Reckoning 2016-10-01 02:26:17 +00:00
Hanmac
31156aa0d6 ComputerUtilCombat: for predictPowerBonusOfAttacker and predictToughnessBonusOfAttacker, add check if Cost of trigger can be paid 2016-09-30 13:36:21 +00:00
excessum
7541a56216 - Stopped AI from using bounce trigger for Aviary Mechanic 2016-09-27 11:50:04 +00:00
Agetian
96ee283980 - AI should only consider untapped vehicles when deciding whether the human player can crew them. 2016-09-27 06:08:16 +00:00
Agetian
38be322177 - Improved Crew AI (will now test if the defending player can actually crew the vehicle) 2016-09-27 05:18:33 +00:00
Krazy
ad1696fde2 [maven-release-plugin] prepare for next development iteration 2016-09-26 21:28:01 +00:00
Krazy
66615a683f [maven-release-plugin] prepare release forge-1.5.56 2016-09-26 21:27:49 +00:00
Hanmac
b5d7e071eb AiController: canPlaySa add check if the mana cost is zero, but the card cost does contain X
should not play this spell for free.
2016-09-26 20:11:47 +00:00
Sol
cbaa40d499 - Adding AI for Combustible Gearhulk based upon known information.
- Adding current Energy count to payenergy cost
2016-09-23 14:36:21 +00:00
Sol
c9260215c3 - Added Eager Construct 2016-09-22 13:59:49 +00:00
Sol
e63a0b3bcf - KLD Fixes (incl. small change to "can't crew Vehicles" to match Revoke Privileges text) 2016-09-21 18:53:27 +00:00
Hanmac
990df333a5 ChooseGenericEffectAi: add more logic for Fabricate.
now if the creature has haste/can attack, it does check if it can attack and would survive that
also add Special Logic for "Marionette Master" and "Cultivator of Blades",
they should react different depending on how much artifacts or creatures are on the battlefield
2016-09-18 11:46:17 +00:00
Hanmac
c0f7ea2983 CostTapType: for Crew add Keyword "CARDNAME can't crew a vehicle",
now the cost does check that the creatures does not have this.
2016-09-18 05:01:39 +00:00
Sol
4ecf85d505 - AI can now activate crew 2016-09-18 02:04:16 +00:00
Hanmac
4204334359 ChooseGenericEffectAi: add logic for Fabricate
in most cases it should prefer tokens if able
2016-09-17 07:05:14 +00:00
Hanmac
a52ae52b6a TokenAi: spawnToken now can return the token even if the toughness says it would not survive 2016-09-16 06:28:32 +00:00
Hanmac
8247310cc0 ComputerUtilCombat: add Melee boost for toughness too 2016-09-11 23:58:59 +00:00
Hanmac
9bfe889f6f GoadAi: add new class for doing the Goad target logic 2016-09-11 23:45:57 +00:00
Hanmac
22fe323c5c ComputerUtilCombat: try to fix Bonus by Melee (at this state it doesn't know how many player it will attack if any) 2016-09-11 01:57:02 +00:00
Sol
4e36fdc2b3 - Adding Energy and PayEnergy for Players (still needs UI updates) 2016-09-03 01:15:05 +00:00
Sloth
142554892f - Fixed AI almost never playing Stone Rain. 2016-09-01 15:19:25 +00:00
Sloth
3a0106bdc0 - Fixed AI targeting with Great Oak Guardian. 2016-08-30 20:48:13 +00:00
Hanmac
8fdc197545 AiController: chooseSpellAbilityToPlay, added LastStateBattlefield and LastStateGraveyard to get them working for AI 2016-08-30 10:44:37 +00:00
Hanmac
1920224f23 AI: fixed copyCard with should have new id, should probably be better with LKI copy 2016-08-25 18:19:52 +00:00
Hanmac
848baaef96 ComputerUtilCard: getPumpedCreature need new id for copy for reasons.
probably should be done with LKI copy.
2016-08-25 18:01:11 +00:00
Hanmac
453c1e7f9f add Goad Effect, add it to AttackRequirement and CombatUtil
also add it to Ai logic
2016-08-25 12:15:54 +00:00
Hanmac
21aa02c7ea ComputerUtilCombat: does use LKI copy instead of copyCard for checking if card can transform in battle 2016-08-21 12:43:16 +00:00
Hanmac
f4f703d7a5 ComputerUtil: add game value for playSpellAbilityForFree 2016-08-20 08:09:43 +00:00
Hanmac
b2aeaff2d6 ComputerUtil: add more LastState 2016-08-18 15:48:23 +00:00
Hanmac
b65a16acf2 ChooseName now uses ICardFaces for selecting a CardName.
that now makes it working for naming an alternate state of a card.
2016-08-18 08:29:11 +00:00
Hanmac
7ce95a0956 ComputerUtil: add LastState to handlePlayingSpellAbility 2016-08-15 18:12:59 +00:00
Hanmac
2be9f32678 CountersPutAi: use Iterables.size for better size 2016-08-15 04:44:23 +00:00
Hanmac
c8b46ec38b CountersPutAi: add chooseSingleCard for Bolster and maybe others 2016-08-15 04:42:50 +00:00
Hanmac
b25b3b0eda ComputerUtil: set CastSA for AI 2016-08-12 15:50:24 +00:00
Sloth
d966c4e08e - The AI will ignore the ability fo Nether Void for cards that can't be countered. 2016-08-11 13:34:10 +00:00
Hanmac
56d6435d81 ComputerUtilMana: fixed that AI can bypass the RollDiceCost 2016-08-11 09:28:16 +00:00
Hanmac
088879bdd0 ComputerUtil: scoreHand, prevent crash on zero lands deck 2016-08-08 12:21:22 +00:00
Hanmac
59232efe17 ComputerUtil: add logic into choosePermanentsToSacrifice for Pillar Tombs of Aku 2016-08-08 11:08:59 +00:00
Hanmac
a3c57c2f4b DamageDealAi: fixed for the AI is not the activator of the damage spell
might need some more AILogic.
2016-08-08 07:59:02 +00:00
Sloth
07677f98cc - Improved AI predicting the effect of Castle when attacking. 2016-08-04 14:28:28 +00:00
Hanmac
be9f6c8ef2 ComputerUtil: fixed chooseSomeType
PlayerControllerAi & MessageUtil: fixed output for chooseType
2016-08-04 13:49:12 +00:00
excessum
c802512ffd - Fixed bug with AI responding wrongly with pumps against exile effects 2016-08-04 12:43:07 +00:00
Hanmac
987af3d0fd ZoneExchangeAi: AI should also not activate it if it does not own the first card 2016-08-04 09:41:53 +00:00
Hanmac
2c097cd62c Big MayPlay rewrite, now use StaticAbility as Key in the mayPlay Map
SpellAbilityRestriction now does check if the spell is still valid when playing.
Add Special Logic for Bestow spells there. MayPlay that only allows creature spells, can't be used for Bestow.
2016-08-03 15:42:28 +00:00