Commit Graph

31206 Commits

Author SHA1 Message Date
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
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