Commit Graph

31374 Commits

Author SHA1 Message Date
Hanmac
89f86202f7 cards: Clockwork Hydra add References 2016-10-14 10:55:52 +00:00
Hanmac
99bdf33774 SrcyAi: rewrote ScryAi to use new SpellAblityAi logic
add logic for Brain in a Jar
2016-10-14 10:55:18 +00:00
Hanmac
e690bdb3aa ComputerUtilCost: checkRemoveCounterCost now uses SpellAbility too
should not try to remove zero counters if its from Source or if PaymentDecision says zero
AiController: also remove getOpponent
2016-10-14 07:35:28 +00:00
Hanmac
94431e308c ComputerUtil: for CardPreference, don't use random, try to choose the worst card 2016-10-14 07:28:06 +00:00
Hanmac
a46d59d4b0 Card & CardPredicates: make hasCMC work with SplitCards 2016-10-14 07:24:16 +00:00
Sol
f2b58e3093 - Fix Spell Description for Metallurgic Summonings 2016-10-13 12:27:37 +00:00
Hanmac
5fb917e62b ManifestAi: rewrote it to use new SpellAbilityAi logic
also add some logic if ai can see its top card
2016-10-13 11:29:24 +00:00
Hanmac
60221cd5a7 AttachAi: add checks for canBeEnchantedBy and canBeEquippedBy 2016-10-12 13:30:12 +00:00
Hanmac
225301db64 CardPredicates: add canBeEnchantedBy and canBeEquippedBy 2016-10-12 13:28:13 +00:00
Hanmac
a9605ee3a0 cards: add DeckHints to cards with Fabricate, also fix TriggerDescription 2016-10-12 11:34:09 +00:00
Hanmac
bd9f7229ce Honorable Scout: fixed references 2016-10-12 11:27:22 +00:00
Hanmac
aa7e312229 PhaseHandler: reset ActiveTriggers before the BattleTriggers are check.
That does fix Finest Hour
2016-10-11 16:46:10 +00:00
Agetian
4213e1269d - Looks like combat phases are counted from 0 up? (fixes Finest Hour and possibly other cards that trigger "at first combat phase"). 2016-10-11 16:30:17 +00:00
Hanmac
0f4351952d Card: hide Cycling and TypeCycling in the Keyword list 2016-10-11 15:38:17 +00:00
Hanmac
aae21a1653 Break of Day: fixed Fateful Hour condition 2016-10-11 15:04:22 +00:00
Hanmac
f9767cca3d Aetherborn Marauder: added References 2016-10-11 09:22:52 +00:00
Hanmac
55eebd3513 Underhanded Designs: add References$ X 2016-10-11 09:19:02 +00:00
Hanmac
120f16b512 cards: Dragonlair Spider add TokenImage and updated oracle 2016-10-11 09:17:00 +00:00
Hanmac
2b40fdbf3e add Presence Keyword to abilityTextInstantSorcery 2016-10-11 09:14:48 +00:00
Hanmac
05cc9e39c2 CostPayEnergy: fixed toString output using Strings.repeat 2016-10-11 09:06:07 +00:00
Agetian
4ad65061f2 - Set CounterEffect to use the new comparison function (experimental, related to previous commit). 2016-10-10 12:31:52 +00:00
Agetian
f90122bdc9 - Attempting to fix Reality Smasher, Frost Titan, Diffusion Sliver and other similar cards by matching the countered spell instance on the stack to the spell ability by its ID as opposed to target choices. May potentially break something, please assist if possible. 2016-10-10 12:29:36 +00:00
Hanmac
ad397740ae MagicStack: update Active Trigger before card is removed from Stack 2016-10-10 11:44:03 +00:00
Myrd
085d752460 Optimize doesCreatureAttackAI() by not simulating combat each time the question is asked. Instead, cache the Combat object and only reset each time we're choosing which ability to play.
This speeds up games that have lots of creatures as before this change, the combat simulation would be done multiple times redundantly.
2016-10-09 22:34:43 +00:00
Myrd
9e84290281 Fix some warnings. 2016-10-09 22:17:24 +00:00
Hanmac
bda4379e8b ChangeZoneAi: improved SameName for Declaration in Stone
for evaluate the creature lists, need to check them per opponent.
also add checks for isTargetableBy
2016-10-09 18:11:20 +00:00
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