Commit Graph

32398 Commits

Author SHA1 Message Date
Hanmac
e3d0e6ebfe ComputerUtilCard: add evaluateCreatureListByName 2016-10-09 17:23:06 +00:00
Agetian
b3a49e005f - For now, disregard both -1 and Integer.MAX_VALUE when rendering integer components in a table.
- Unfortunately, this means that Spinal Parasite does not have its P/T visualized in the deck editor table; but at least there won't be a lot of -1's elsewhere in the editor. Couldn't find a way to fix both of these at the same time for now.
- Revert processing default CMC as Integer.MAX_VALUE for the UI purposes.
2016-10-09 15:17:58 +00:00
Agetian
2b73fb48f4 - Removed unnecessary import. 2016-10-09 14:45:14 +00:00
Agetian
b5584dcad5 - Use Integer.MAX_VALUE as a placeholder default value for power, toughness and CMC of non-PaperCard objects to avoid showing the inapplicable default value in the deck editor interface. 2016-10-09 14:44:35 +00:00
Agetian
2cd7016703 - More changes related to supporting negative power and toughness, please test to see this doesn't break anything.
- Fixed some visualization issues in the deck editor related to supporting negative P/T (e.g. non-creatures showing up as P/T 2 billion+ / 2 billion+).
2016-10-09 12:05:55 +00:00
excessum
401dba1596 - Implemented AI for Declaration in Stone 2016-10-09 05:42:26 +00:00
Agetian
0c4e63d628 - Minor stylistic fix. 2016-10-08 16:11:45 +00:00
Agetian
01b10f2875 - Properly consider Trample damage for non-pumped blocked creatures in the previously committed routine. 2016-10-08 16:11:04 +00:00
Agetian
537c79493f - AI Pump logic update: try to determine if pumping a creature for more power will give lethal on board considering all unblocked creatures after the blockers are declared in the Declare Blockers step. 2016-10-08 16:07:31 +00:00
excessum
4ca1fc3911 - Fixed bug from r32304 2016-10-08 13:45:40 +00:00
excessum
bdae06573b - Implemented AI for Die Young and changed it to Sorcery 2016-10-08 13:08:56 +00:00
excessum
43840198ec - Updated PumpAi 2016-10-08 12:31:11 +00:00
excessum
66b59a1bb5 - Minor fixes for AnimateAi 2016-10-08 12:21:33 +00:00
Agetian
6adbc487f1 - Reverted the first part of Kaya, Ghost Assassin change. 2016-10-08 07:37:18 +00:00
Agetian
60899c9e28 - Use the CARDNAME alias. 2016-10-08 07:05:13 +00:00
Agetian
ab639a804c - Simplified the implementation of Kaya, Ghost Assassin 0 ability
- Added Ultimate marker to the -2 ability to support the relevant Planeswalker achievement
2016-10-08 07:02:35 +00:00
excessum
1eb9fa375e - Separated vehicle crewing logic between "canPay" and "canPlay" 2016-10-08 06:14:44 +00:00
excessum
8fbfea317a - Updated AnimateAi 2016-10-08 02:43:41 +00:00
Hanmac
b9822efe19 cards: update cards with Retrace, using new keyword 2016-10-07 10:51:20 +00:00
Hanmac
50651c2ee1 cards: Blood-Chin Rager updated oracle text 2016-10-07 10:49:25 +00:00
Hanmac
9bf8710a2b CardFactoryUtil: add Retrace as Keyword 2016-10-07 10:41:51 +00:00
Hanmac
06522aedbe CardTraitBase & SpellAbility: mapParams need to be copied on clone too so they can be changed. 2016-10-07 10:39:58 +00:00
Hanmac
7ea58267da AbilityUtils: Defined$ Opponent needs to return all Opponents 2016-10-07 08:43:43 +00:00
Hanmac
c0c750ae94 cards: Bend or Break: total rewrite to work with multiple players 2016-10-07 08:42:36 +00:00
Hanmac
561e656c44 Player: add OpponentOf to get the Opponents of a defined value 2016-10-07 08:31:35 +00:00
Hanmac
737fae947d PumpAiBase: updated isUsefulCurseKeyword to remove getOpponent
refactor Combat related stuff, for AI attacking, the card's controller need to be the one attacked.
2016-10-07 08:23:20 +00:00
Agetian
09b0db74cc - Added PLOT counter type for Deadly Designs. 2016-10-07 04:28:37 +00:00
Sol
c7428f4ea2 - Fix description 2016-10-06 20:29:21 +00:00
Agetian
cb9f92d419 - Kozilek's Pathfinder AI improvement: the AI should not consider the "target creature can't block CARDNAME this turn" ability if the source of the ability is tapped and not attacking. 2016-10-06 20:24:34 +00:00
Hanmac
d2fb20b341 ChangeZoneEffect: Ninjutsu need to attack the same Defender as Returned Creature 2016-10-06 15:51:04 +00:00
Hanmac
649305d7c2 cards: update Wormfang Crab with choosePlayer and ExiledWith 2016-10-06 10:30:11 +00:00
Hanmac
a8acd31ac6 cards: whirlpool warrior: use Winds of Change 2016-10-06 10:13:19 +00:00
Hanmac
4b55521488 cards: wharf infiltrator: fix layout and add DeckHints 2016-10-06 09:50:00 +00:00
Hanmac
565781e927 cards: Search for Survivors select opponent 2016-10-06 09:44:59 +00:00
Hanmac
a6c320c8e7 cards: Planeswalker's Fury use ParentTarget 2016-10-06 09:44:16 +00:00
Hanmac
42def1b481 cards: fixed Fateseal for selecting player first 2016-10-06 09:30:26 +00:00
Hanmac
91010ac4f5 cards: Last Stand has target opponent 2016-10-06 09:18:31 +00:00
Hanmac
199794a1ee cards: some oracle update 2016-10-06 09:16:57 +00:00
Hanmac
955e775d89 cards; Syphon Mind and Syphon Soul uses Other Player, not Opponent 2016-10-06 09:15:53 +00:00
excessum
c88cb274ae - Implemented AI for "can't block CARDNAME this turn" abilities (eg. Kozilek's Pathfinder) 2016-10-06 02:40:43 +00:00
excessum
b962bc9ca6 - Stopped AI from crewing vehicles with stronger or equal (ie. crew vehicle with another copy of crewed vehicle) creatures 2016-10-06 02:25:15 +00:00
Hanmac
d3faa45ab1 QuestUtilCards: fixed wasteCodes 2016-10-05 20:49:25 +00:00
Sol
47530518bb - Make Wastes always available in the spell shop 2016-10-05 20:14:56 +00:00
Agetian
0dd3a36ca1 - Attempting to fix Spinal Parasite by adding support for negative power/toughness for creatures.
- Warning: this is an experimental fix which changes several aspects of card loading and P/T get/set functions, may potentially break things. Please test and update as necessary.
2016-10-05 18:11:35 +00:00
Hanmac
e58c4f815d Remorseless Punishment: use ; for Sac Cost 2016-10-05 11:44:35 +00:00
Hanmac
2898925011 HumanPlay: Fixed Sac<> in payCostDuringAbilityResolve 2016-10-05 11:43:12 +00:00
Agetian
1f06a098bf - Adding an AI preference to Harvester Troll per Hanmac's recommendation to temporarily work around the "sacrifice self" issue. 2016-10-05 11:27:12 +00:00
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
5e2932ba62 CardDb: add AltName for Cards, specially the AEther one 2016-10-05 08:46:45 +00:00