Commit Graph

31512 Commits

Author SHA1 Message Date
Hanmac
d8c97d9c4e CardFactoryUtil: moved "At the beginning of your upkeep, sacrifice" as "UpkeepCost" in CardFactoryUtil
delete Upkeep class because its not needed anymore
2016-12-17 18:03:43 +00:00
Agetian
4b10704390 - When setting cloned SA targets in CharmEffect::ChainAbilities, call setTargets last in order not to forget if there were several targets selected (fixes Abzan Charm AI failing to correctly divide and allocate counters to two targets). 2016-12-17 17:31:57 +00:00
Agetian
141f66d54d - Reset targets for ChangeZoneAi SameName logic (hopefully fixes Declaration in Stone AI targeting errors). 2016-12-17 15:05:57 +00:00
Agetian
1da0063310 - Somewhat better structuring of ChangeZoneAll AI targeting check. 2016-12-17 14:41:19 +00:00
Agetian
08a6d2557f - Reverting RemAIDeck mark on Paradigm Shift, back to RemRandomDeck only. 2016-12-17 14:36:05 +00:00
Agetian
e09d57562f - A better idea: for non-targeted AF ChangeZoneAll, just return "true" for now without trying to target it. This allows to keep Paradigm Shift as non-RemAIDeck. 2016-12-17 14:35:45 +00:00
Agetian
493d8625bf - The AI can't use Paradigm Shift, marking as RemAIDeck. 2016-12-17 14:26:14 +00:00
Agetian
8977d1ad8f - AI should not attempt targeting AF ChangeZoneAll which does not need any targets (e.g. Timetwister, Memory Jar, etc., which the current AI can't use). 2016-12-17 14:16:02 +00:00
Hanmac
2b055b84fb CardFactoryUtil: fixed Manifest 2016-12-17 11:04:05 +00:00
Agetian
256d0bd455 - Further updated the cards from the previous commit.
- Removed DB Cleanup from cards that do not utilize it anywhere else.
- Rewrote the cards that used RememberedController (from LKI) but do not care about the destruction of the creature to use TargetedController instead.
2016-12-17 08:44:18 +00:00
Agetian
c4908fc0c0 - Removed RememberLKI from cards updated in the previous commit.
- Fixed Death's Caress
2016-12-17 08:34:51 +00:00
Agetian
4ca2ca7441 - Update cards that have an extra ability which does not care whether the targeted creature was destroyed or not (indestructibe, regenerated, etc.) to use TargetedLKI instead of RememberedLKI. 2016-12-17 08:27:57 +00:00
Hanmac
ab84992837 phthisis: no need to use remember at all 2016-12-17 08:19:45 +00:00
Agetian
c105059785 - Using TargetedLKI for Phthisis so that it does not care about the creature being destroyed or not. 2016-12-17 08:09:18 +00:00
Agetian
eaf4e94851 - Reverting the RememberLKI change for now, breaks many other cards. 2016-12-17 08:08:03 +00:00
Agetian
3585177898 - Minor formatting fix. 2016-12-17 06:32:15 +00:00
Agetian
7dc9437752 - [Experimental]: do not invoke the achievement update in the game thread (which creates a race condition when there are multiple achievements of different types to be awarded, freezing the game completely). 2016-12-17 06:31:51 +00:00
Agetian
3f2b5425b9 - AB Destroy should remember LKI if instructed to via RememberLKI parameter even if the creature is not destroyed (for the sake of subabilities that may reference that LKI). Fixes Phthisis + regenerating a creature. 2016-12-17 06:23:37 +00:00
Agetian
0879a7fb85 - Fixed Slave of Bolas. 2016-12-16 19:42:51 +00:00
Agetian
c789fc32f7 - List most likely can't be null at this point since it's instantiated, so just check for empty. 2016-12-16 19:02:30 +00:00
Agetian
4aec9031d3 - NPE prevention measure in ControlGainAi (potentially trying to sort an empty list when the AI has nothing to target). 2016-12-16 19:01:52 +00:00
Agetian
99b730ebc7 - NPE prevention in Charm effect (note: if the AI is trying a Charm effect while it hasn't chosen anything, then there's also an issue elsewhere in the logic, may need further examination/correction). 2016-12-16 18:59:14 +00:00
Agetian
f439fe52c4 - Fixed Everflowing Chalice NPEing after being cast via Delay. 2016-12-16 18:49:34 +00:00
Agetian
d3951c0061 - Added an extra check for Genju of the <X> AI. 2016-12-16 12:02:19 +00:00
Agetian
f076b765de - Removed an extra blank line. 2016-12-16 10:53:58 +00:00
Agetian
b46aabf6c6 - Prevent the AI from animating a land enchanted with an animating aura (i.e. Genju of the Cedars) by tapping the land that is to be animated. 2016-12-16 10:53:20 +00:00
Agetian
c2907aa915 - [Experimental] attempt to fix Kalitas, Traitor of Ghet interaction with mass removal by reading LKI about the card's last known zone on a Moved replacement effect event. 2016-12-16 07:07:11 +00:00
Agetian
21d442db94 - Fixed Batwing Brume stack description. 2016-12-15 11:28:21 +00:00
Agetian
251c85aeb3 - Fixed Batwing Brume NPE. 2016-12-15 10:25:21 +00:00
Agetian
fbf3845ca6 - Fixed CountersPutAi NPEing on divided counter allocation (e.g. Ajani, Mentor of Heroes +1) 2016-12-15 06:16:55 +00:00
Hanmac
b8f7ea55f4 CardFactoryUtil: move Cumulative upkeep as part of SacrificeEffect and add it to Trigger
remove multiplyCost because its not needed anymore
2016-12-14 21:08:44 +00:00
Hanmac
49c76ba3ac HumanPlay: fixed Text for CostAddMana 2016-12-14 20:57:01 +00:00
Hanmac
ddb7bcd974 Cost: make Cost better copyable
When adding CostParts, make CostAddMana join together
2016-12-14 20:55:32 +00:00
Agetian
7a1231eb1a - Fixed Sapphire Charm not actually drawing a card. 2016-12-14 17:33:00 +00:00
Agetian
2169200808 - Eldritch Moon should be a legal set in Innistrad Planar Conquest. 2016-12-14 17:22:25 +00:00
Agetian
8d427fd2fe - Removed debug messages. 2016-12-14 16:28:54 +00:00
Agetian
3407e84965 - Temporary fix [attention required]: fill Execute parameter for SAs that are parented to Charm API. Fixes Sapphire Charm first ability crashing. Most likely requires a different fix, please correct. 2016-12-14 16:17:12 +00:00
Agetian
8c7f967d50 - Fixed Jhoira of the Ghitu Avatar crashing. 2016-12-14 16:08:29 +00:00
Agetian
24f993eaef - Somewhat neater implementation of Storm description. 2016-12-14 14:35:22 +00:00
Agetian
d52d6300cd - Fixed Aether Membrane. 2016-12-14 12:43:12 +00:00
Agetian
432ab1bcf3 - Prevent a NPE ensuing from potentially "bleeding" a challenge from one quest world to another. 2016-12-14 10:40:18 +00:00
Agetian
03f100686a - Added a missing parenthesis. 2016-12-14 04:40:30 +00:00
Agetian
8e8bc627ef - Fixed generation of Storm description (fixes e.g. Astral Steel and friends crashing). 2016-12-14 04:37:49 +00:00
Agetian
f32fe2d130 - A cleaner import cleanup 2016-12-13 19:16:19 +00:00
Agetian
e210a9d744 - Removed an unused import. 2016-12-13 19:15:11 +00:00
Agetian
3be3a5424e - Reverted the Delve change in CardFactoryUtil for now, looks not necessary. 2016-12-13 19:10:56 +00:00
Hanmac
7bd7a0fcea CardFactory: reorder SpellAbilities, the First should be SpellPermanent 2016-12-13 18:49:51 +00:00
Agetian
7e9454a9c9 - Fix Delve not working for permanents (most notably creatures) that have additional non-mana abilities. 2016-12-13 17:20:25 +00:00
Agetian
9cc3ba1a62 - Fixed Undying triggering twice. 2016-12-13 04:48:58 +00:00
Agetian
881dedfc59 - Fixed some C16 cards crashing with a class cast exception (changed SVar ABs with cost 0 to DBs) 2016-12-13 04:24:18 +00:00