Commit Graph

34899 Commits

Author SHA1 Message Date
Indigo Dragon
a648e888c5 Capitalisation 2017-11-03 07:10:50 +00:00
Agetian
af94789b7f - The cast in AbilityUtils.java:1038 is unsafe despite the comment saying otherwise. The game could crash under certain circumstances with a class cast exception (e.g. the AI attacking with Wings of the Guard into a planeswalker like Kaya, Ghost Assassin). 2017-11-03 06:40:52 +00:00
Hanmac
c4520a0ac2 CardPredicates: fixed containsKeyword 2017-11-02 05:38:16 +00:00
Hanmac
75bec0a132 AbilityManaPart: update SourceCard if it got updated inside of SpellAbility 2017-10-31 13:27:51 +00:00
Hanmac
b680878558 CardFactoryUtil: fixed multiple problems with Dredge 2017-10-30 19:25:50 +00:00
Hanmac
3f95ca2869 CardFactory: fixed etbCounter init twice for Planeswalker 2017-10-30 18:37:41 +00:00
Hanmac
003d7ac606 CardState & Keyword when copying the keywords and cardtraits, update the hostcard for them
for Keyword, update them when the Keyword get's copied
2017-10-30 10:17:18 +00:00
Hanmac
b61267d3bd CardFactoryUtil: hide ETB Tapped Replacement Effects, already got the keyword text 2017-10-28 07:42:48 +00:00
Hanmac
a6728853db CardFactoryUtil: fixed ETB tapped 2017-10-28 07:01:49 +00:00
Hanmac
d95c46e1b8 Keyword VII: Make KeywordInterface copyable for reasons
fixed CardFactoryUtil and etbCounter
2017-10-27 18:22:05 +00:00
Hanmac
d3a18c55d3 Try to fix Keyword Creation on CardState#copy 2017-10-27 06:16:08 +00:00
Hanmac
8bffadeb14 Keyword VI : the last of the changes 2017-10-27 02:45:12 +00:00
Hanmac
4abb037081 Keyword V: Rise of the intrinsic 2017-10-26 18:28:24 +00:00
Indigo Dragon
07d6cebba4 Fixed some mana costs. 2017-10-26 12:14:44 +00:00
Hanmac
abd929070e Keyword IV : a new Hope to finish 2017-10-25 20:31:42 +00:00
Hanmac
ea937a410b CloneEffect: fixed for Keyword change 2017-10-25 19:33:37 +00:00
Hanmac
64159bab6f Keyword Change III: now CardTraits aren't added to Card/CardState anymore but they are added to Keywords only
CardState uses update functions to fill the list from unhiddenKeywords
2017-10-25 19:09:36 +00:00
Agetian
164e6656e8 - Pump AILogic ContinuousBonus: don't target opponent's creatures. 2017-10-25 04:28:37 +00:00
Hanmac
0bac699cbf KeywordUpdate: fixed more stuff 2017-10-23 20:13:42 +00:00
Hanmac
2030ffcea3 KeywordApocalypse: return KeywordInstance whenever possible 2017-10-23 19:54:12 +00:00
Agetian
6433eff8ec - FIXME: Introducing a temporary measure to check for TargetedPlayerCtrl/TargetedPlayerOwn via the CastSA chain when the standard check fails. This can happen, for example, when an opponent's card is activated in hand (e.g. Chandra's Fury via Sen Triplets). Please assist, if possible, in investigating the source of this issue and fixing it (this may manifest itself in other places too, and most likely does). Feel free to revert this commit if you know a good solution. 2017-10-23 06:55:20 +00:00
Hanmac
6c51f7c6bc CardFactoryUtil: removed parseKeywords, and moved the last parts to methods
remove the need of Keyword.getInstance in each method
2017-10-22 18:04:36 +00:00
Hanmac
0c82e0614c Keyword Change: bind CardTraits onto Keyword(Instance/Interface) instead of KeywordsChange
call CardFactoryUtil functions only over Keyword(Instance/Interface)
2017-10-22 07:44:05 +00:00
Hanmac
acd30aaf08 Keyword: add KeywordInterface to be used instead of KeywordInstance<?> 2017-10-22 06:31:30 +00:00
Hanmac
ce2f75d43d KeywordCollection: refactor to make it work without string Map
KeywordInstance now has Original Keyword inside if needed elsewhere
Cycling better split into normal KeywordWithCost and TypeCycling into KeywordWithCostAndType
2017-10-21 19:20:45 +00:00
Hanmac
3f3875cc0c CardState: use KeywordCollection internal 2017-10-21 15:47:43 +00:00
Hanmac
e939218a65 KeywordCollection: use MultiMap to build it 2017-10-21 15:46:35 +00:00
Hanmac
d929a8b140 Koth & Elspeth: fixed EffectKeyword as Description 2017-10-21 15:38:14 +00:00
Hanmac
3e1aef4a58 CardFactoryUtil: shorted setupKeywordedAbilities and use the other functions 2017-10-20 06:16:14 +00:00
Hanmac
93dad0bf44 CostAdjustment: don't need Delve on SpellAbility 2017-10-20 06:09:58 +00:00
Agetian
d5259e8bfb - Added "CARDNAME can't phase out" to the list of non-stacking keywords (fixes AI using Ertai's Familiar). 2017-10-20 04:51:17 +00:00
Hanmac
440d7fe2b8 CardFactoryUtil: reworked ETB Replacement Keywords 2017-10-18 07:16:07 +00:00
Hanmac
0e666f07e9 CardFactoryUtil: moved Dredge to ReplacementEffect 2017-10-18 06:24:50 +00:00
Hanmac
1b542e936b CardTraitBase: moved sVars from SpellAbility 2017-10-18 06:16:23 +00:00
Hanmac
13487bbeed CardFactoryUtil: moved Amplify to ReplacementEffect 2017-10-18 05:43:34 +00:00
Hanmac
7a71716c7f cards: removed extra param from Champion 2017-10-17 05:38:27 +00:00
Hanmac
e72baa9dd4 CardFactoryUtil: moved Champion to addTrigger 2017-10-17 05:36:57 +00:00
Agetian
4c9f188b0c - A tweak to the previous method 2017-10-17 03:54:32 +00:00
Agetian
e78f90bc62 - Attempting to fix IndexOutOfBoundsError in CostRemoveAnyCounter. Couldn't trace it to the root of the problem yet though. 2017-10-17 03:53:44 +00:00
Hanmac
19d5e8457f Aura Barbs: use RelativeTarget 2017-10-16 17:58:10 +00:00
Hanmac
0fb0837561 DamageDealEffect: add RelativeTarget for to be relative to Damage Source 2017-10-16 17:54:57 +00:00
Hanmac
6cff21f47b AbilityUtils: add CardController for getDefinedPlayers 2017-10-16 17:52:05 +00:00
Hanmac
477408676d UntapAI: fixed non-final problems 2017-10-16 17:24:41 +00:00
Indigo Dragon
97b675bc9f THIRD RUN WITH DDT 2017-10-16 14:18:59 +00:00
Indigo Dragon
65dab56ad0 Second run with DDT 2017-10-16 14:18:10 +00:00
Indigo Dragon
faba97a6f5 First Run at DDT, based on leaked lists. 2017-10-16 14:11:21 +00:00
Agetian
c10a2e1133 - Minor improvement in Volrath's Shapeshifter AI logic. 2017-10-16 08:33:37 +00:00
Agetian
83d13cc153 - Fixed Wormfang Drake (does not use the Champion keyword). 2017-10-16 06:43:51 +00:00
Agetian
bdbdd990a7 - UntapAi: use the Tap to Untap Land logic for permanents only for now, to be improved later for sorceries. 2017-10-16 06:37:32 +00:00
Agetian
70e4d80965 - A more advanced untap logic for cards like Voyaging Satyr that allows the AI to pool mana and untap lands for more in order to cast a bigger spell. 2017-10-16 06:21:29 +00:00