Commit Graph

30632 Commits

Author SHA1 Message Date
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
92a85b6394 Knight of the Mists: add UnlessAI, so AI only pays the cost if it does target its own knight 2016-08-02 11:09:48 +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
Agetian
a714ecb3ee - Updated CHANGES.txt a bit. 2016-08-02 09:47:51 +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
Agetian
56c8b7d306 - Fixed Slayer's Cleaver. 2016-08-02 05:08:00 +00:00
Sol
b498fa5ee1 - Adding some foundation for Cogwork Librarian
- It seems like Booster Drafts weren't changing directions for the middle packs?
2016-08-01 14:45:32 +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
Hanmac
08f41aaeae Card: add getAlternateStateName, which can be used to transform something in its alternate state 2016-08-01 08:04:49 +00:00
Agetian
395eebdf47 - Fixed Fevered Visions, part 2: added a missing SVar reference. 2016-08-01 05:52:34 +00:00
Agetian
9f4a9cc464 - Fixed Fevered Visions. 2016-08-01 05:45:47 +00:00
Hanmac
af7c6b03c4 Chainer, Dementia Master: should overwrite colors 2016-07-31 19:22:05 +00:00
Hanmac
2b19c3fa9f Cost: CostDiscard & CostTapType can now be merged if the Type is the same and amount is numeric in both cases. 2016-07-31 07:44:49 +00:00
excessum
b5d3b86693 - Made AI aware of activated transform abilities in combat 2016-07-31 04:22:39 +00:00
Sol
49fa4886f0 - Fixing small typo 2016-07-30 20:27:37 +00:00
Sol
d30fd6ab21 - Adding count of types to the Tooltip for Graveyards for improved Delirium QOL 2016-07-30 20:05:48 +00:00
Hanmac
7dc03721ff CardFactoryUtil: Persist/Undying using OncePerEffect to prevent it from triggering itself 2016-07-30 19:35:31 +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
Hanmac
325fd94907 AiController: getCardsToDiscard add exclude parameter (like using for already selected for discarding) 2016-07-30 18:59:43 +00:00
Hanmac
443ee670cd ComputerUtilCost: checkDiscardCost: remove from hand what is already selected for discard 2016-07-30 18:58:37 +00:00
Hanmac
29c0f4bfaa ComputerUtil: chooseTapType add exclude parameter (like using for already selected for tapping) 2016-07-30 18:56:50 +00:00
Sol
c3bd44f604 - Fix Spell Description for Unnatural Aggression 2016-07-30 17:48:16 +00:00
Sol
51186c7506 - Welcome 2016 is a legal "set" in standard 2016-07-30 17:25:59 +00:00
Hanmac
187dc5cf2b Karador, Ghost Chieftain: fixed type line 2016-07-30 17:11:44 +00:00
Sol
16cc8565d5 - Fix Gisa and Geralf type line 2016-07-30 15:13:04 +00:00
Hanmac
ca14b1d984 Gisa and Geralf: add card because now scriptable 2016-07-30 14:38:12 +00:00
Agetian
188155d26c - Fixed Impetous Devils. 2016-07-30 14:08:58 +00:00
excessum
46b6131f69 - Updated ChangeZoneAi to use new canPlay() 2016-07-30 13:03:06 +00:00
Hanmac
24002024a9 Hedonist's Trove: add card because now scriptable 2016-07-30 11:55:19 +00:00
Hanmac
208c1e0b24 Aluren: fixed that it works for all Players, restrict it to the affected cards owner. 2016-07-30 11:38:00 +00:00
Hanmac
9468e9e454 Big MayPlay Update, now MayPlayEffect does know about its host card, and the hostcard does count how often the effect is used.
also add MayPlayLimit and MayPlayCardOwner flags.
that makes Karador, Ghost Chieftain scriptable
2016-07-30 11:36:58 +00:00
excessum
7baa99dcbb - Fixed bug where AI suicides attackers into multi-blockers (eg. 2/3 lifelink into two 2/3s) 2016-07-30 08:18:25 +00:00
Hanmac
56b53cda54 forge-game: remove mention of "may be played" 2016-07-30 07:56:38 +00:00
Hanmac
8bc1015496 SpellAbilityAi: add to the warnings of "default implementation" which card did cause that problem 2016-07-30 07:53:33 +00:00
Hanmac
bb114eba85 forge-ai: remove mention of "may be played" 2016-07-30 07:52:08 +00:00
Hanmac
81f03e34a2 GameAction: remove mention of "may be played" 2016-07-30 07:50:37 +00:00
excessum
2ac9949251 - Added AILogic for mill ability of Liliana, the Last Hope 2016-07-30 05:41:03 +00:00
Hanmac
f036d509f6 Garruk's Horde: use MayPlay and MayLookAt Flag 2016-07-30 03:07:37 +00:00
Hanmac
a50e0e3368 Uba Mask: use MayPlay Effect 2016-07-30 03:06:01 +00:00
Hanmac
f8ecf30ee5 Yawgmoth's Agenda: use MayPlay Flag 2016-07-30 03:00:54 +00:00
Hanmac
06476ee1bd Eternal Scourge: use MayPlay Flag 2016-07-30 02:58:16 +00:00
Hanmac
aa175f5259 Melek, Izzet Paragon: use MayPlay and MayLookAt Flag 2016-07-30 02:57:10 +00:00
Hanmac
833589fcad Marang River Prowler: use MayPlay Flag and IsPresent 2016-07-30 02:55:39 +00:00
Hanmac
1f74bcfe91 Misthollow Griffin: use MayPlay Flag 2016-07-30 02:53:58 +00:00
Hanmac
21944d6997 Oracle of Mul Daya: use MayPlay and MayLookAt Flag 2016-07-30 02:53:00 +00:00
Hanmac
19e5ff5c85 Elkin Lair: use MayPlay Flag 2016-07-30 02:50:49 +00:00
Hanmac
c7fda1c2c2 Dream Pillager: use MayPlay flag, and add ExiledOnMoved flag instead of trigger 2016-07-30 02:46:24 +00:00
Hanmac
3f0442b7f1 Prophetic Flamespeaker: use MayPlay flag, and add ExiledOnMoved flag instead of trigger 2016-07-30 02:44:18 +00:00