Commit Graph

946 Commits

Author SHA1 Message Date
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
Hanmac
2458a8f73c Cost: moved "You can't sacrifice creatures to cast spells or activate abilities." into Card.canBeSacrificedBy.
also add Property for that.
2016-08-03 10:50:34 +00:00
Hanmac
22c741c7d0 ClashAi: add logic to select player for Clash,
Split cards are not implemented yet.
2016-08-03 09:41:57 +00:00
Krazy
be014c4237 [maven-release-plugin] prepare for next development iteration 2016-08-02 19:29:16 +00:00
Krazy
40636891c9 [maven-release-plugin] prepare release forge-1.5.55 2016-08-02 19:29:06 +00:00
Hanmac
a381163a12 fixed ComputerUtil & PlayerControllerAi: return false if spell cost could not be paid
that does fix Madness for AI
2016-08-02 18:12:10 +00:00
Hanmac
9708019f7e ComputerUtil: updated chooseSomeType to use better check with removing invalid types first. 2016-08-02 12:07:29 +00:00
Hanmac
a11906c21b ComputerUtilCard: add getMostProminentBasicLandType and a more generic getMostProminentType
change getMostProminentCreatureType to use the generic form too
2016-08-02 11:59:34 +00:00
Hanmac
afd50154d1 SetStateAi: add more logic for transforming, now use always evaluated value check
unblocked should only care about transformed power for now.
thats the next step in making the AI use Elusive Tormentor better.
2016-08-02 10:55:49 +00:00
Hanmac
16a2160598 AiAttackController: add check for GlobalAttackRestrictions used for getting MaxAttack,
when it can only attack with one creature, it should pick the strongest one. 
also moved MustAttack parts a bit.
that fixes AI using the Attack Rule of Silent Arbiter correctly
2016-08-02 08:24:10 +00:00
Agetian
a629afcc3b - Implemented a basic "good" triple gang block. Currently considers a 3-vs-1 block in which only one blocker dies *or* a 3-vs-1 block in which two blockers may die but one of which is a token "good". May not be optimal and may be a bit slow at the moment, please consider improving. 2016-08-02 05:24:14 +00:00
excessum
0669c4c0bd - Fixed cannot add to stack bug for AI with Tree of Perdition 2016-08-01 12:38:18 +00:00
Hanmac
88988cfe26 SetStateAI: add checkPhaseRestrictions to check which form would be better for transformation.
thats for Screeching Bat vs Stalking Vampire to check in which form it should attack.
2016-08-01 09:57:04 +00:00
excessum
b5d3b86693 - Made AI aware of activated transform abilities in combat 2016-07-31 04:22:39 +00:00
Hanmac
13b1f01e3b AiCostDescision: add collection for discarded and tapped, to prevent the ai from using the same card twice 2016-07-30 19:01:34 +00:00