Commit Graph

2240 Commits

Author SHA1 Message Date
Sol
b4438cebf8 Fix Flip a Coin working with Krark's Thumb 2017-04-01 02:59:34 +00:00
Sol
3e05b2b520 Actual fix for Daredevil Dragster 2017-03-28 02:48:46 +00:00
Sol
84b06ef2d3 Don't filter by creatures when resetting Damage History 2017-03-28 02:08:42 +00:00
Hanmac
f580f114d2 ReplacementHandler: add getReplacementList to get List of possible Replacement Effects
also remove game params because it already has game property
2017-03-25 07:49:49 +00:00
Hanmac
044f60b4d1 SpellAbility & CardTraitBase: move hasParam and getParam into CardTraitBase
add CardTraitPredicates as base for SpellAbilityPredicates
2017-03-19 13:05:06 +00:00
Agetian
0d0b46710a - Added a TODO entry to CopySpellAbilityEffect, didn't find a way to implement things in a more optimal way without potentially rewriting and breaking stuff. 2017-03-15 05:18:21 +00:00
Agetian
3dcf04cc8c - Targeted spell copies should not allow the player to cancel targeting (e.g. Storm spell copies). 2017-03-14 16:22:52 +00:00
Hanmac
adea3a4016 Player: add getInboundTokens to make it accessable in Game#forEachCardInGame 2017-03-11 17:15:48 +00:00
Agetian
eb5939ac5b - Account for TargetType when determining if something can be legally targeted by a SA (fixes e.g. the possibility of using Spellskite to fizzle counterspells). 2017-03-07 06:07:05 +00:00
Hanmac
c0a586294e VoteEffect: shorten the Code using PlayerPredicates and CardPredicates 2017-03-05 07:59:35 +00:00
Hanmac
d06b4be8a5 CardPredicates: add compareByTimestamp 2017-03-05 07:58:06 +00:00
Hanmac
b5ee226f28 PlayerPredicates: add hasKeyword 2017-03-05 07:57:33 +00:00
Sol
144156c497 Add Ballot Broker, Borderland Explorer, Custodi Soulcaller, Illusion of Choice (CN2) 2017-03-05 02:53:42 +00:00
Myrd
0527f4cb44 [Simulated AI] Smart decisions about whether to play spells before or after blocks.
For example, using a doom blade before blocks to attack for lethal is preferred vs using a pump spell after blocks to pump an unblocked creature for lethal damage. Adds relevant tests.
2017-02-26 21:22:10 +00:00
Hanmac
571f69011b Player: getAllies should not return the player itself 2017-02-25 10:03:13 +00:00
Sol
d3356140d1 - Fix Armory Automaton 2017-02-25 02:19:47 +00:00
Sol
7f82e78b92 [maven-release-plugin] prepare for next development iteration 2017-02-21 04:12:49 +00:00
Sol
c19c8a62e0 [maven-release-plugin] prepare release forge-1.5.60 2017-02-21 04:12:35 +00:00
Agetian
9f4317bf45 - Ensure that the card state view is updated when a creature with Suspend ETBs/LTBs (this fixes the summoning sickness icon still visible on a creature with Haste-from-Suspend). 2017-02-19 05:05:02 +00:00
Hanmac
c03b38ca9b CardFactory: copyCard with Token: copyState does already copy StaticAbilties 2017-02-16 18:20:17 +00:00
Hanmac
489baa8751 CardState: with copyForm, use the card of the new state as host 2017-02-16 18:15:13 +00:00
Hanmac
5dc9031444 CostDamage & HumanPlay: add missing triggerPreventDamage 2017-02-16 17:58:05 +00:00
Agetian
2e10dacd9a - Attempting to fix compile errors [please review and update if necessary]. 2017-02-16 17:48:21 +00:00
Hanmac
33917b7d65 Card: fixed intrinsic on copied static abilities 2017-02-16 06:21:48 +00:00
Hanmac
93b0457526 Card: update the host for static abilties if the state is changed 2017-02-16 05:28:26 +00:00
Hanmac
d47429445b Card: add missing fix for prevent damage 2017-02-16 05:19:46 +00:00
Hanmac
f930215556 DamagePreventedOnce: add trigger for Damaged Prevented Once 2017-02-15 19:12:26 +00:00
Hanmac
a9aac34a8a GameAction: fixed StaticAbility for Card changes Zone 2017-02-13 05:44:16 +00:00
Hanmac
32981c7577 Card: remove StaticAbilityStrings, copy the static abilities directly 2017-02-12 02:55:38 +00:00
Hanmac
249e3f9d71 CardFactory: add assignNewId to copyStats to make it work better with copyCard and token 2017-02-10 06:22:54 +00:00
Agetian
24422508ba - Fixed LastStateBattlefield/LastStateGraveyard counts (e.g. Ulasht, the Hate Seed) 2017-02-10 05:03:25 +00:00
Agetian
2580e67cb4 - Implemented a workaround for the LKI objects not storing the proper CMC of the card if the original object was in a non-Original state (note that using setState to set the state of the LKI object does not work as it breaks the UI; better solution is welcome). 2017-02-08 15:39:56 +00:00
Agetian
3d2289d3ba - Removed a line that was never used (in CardFactory). 2017-02-06 16:39:38 +00:00
Hanmac
aa6504c966 CardFactoryUtil: fixed Renown Trigger 2017-02-05 12:48:35 +00:00
Agetian
8e91a396d9 - Using the copyState method of copying over card states. 2017-02-05 12:41:25 +00:00
Agetian
a45335791d - Committing a temporary version of getLKICopy that does not break visuals of many cards in many different circumstances (may need further improvement). 2017-02-05 12:37:49 +00:00
Hanmac
603b803b04 CardUtil: getLKICopy should not update the View 2017-02-05 10:11:33 +00:00
Hanmac
a0a053246b ChangeZoneEffect: make it work if no Origin is used (because it does have multiple)
ChangeZoneAi: some more tweaks and make above change possible
2017-02-04 17:14:00 +00:00
Hanmac
b31d270111 CardUtil: LKI should not update the view 2017-02-04 09:01:05 +00:00
Hanmac
b9421739f8 TokenEffect: fixed order when Token get its abilities to fix Evolve Trigger 2017-02-04 08:42:21 +00:00
Agetian
d429906bcd - Somewhat cleaner fix related to the previous commit. 2017-02-04 07:29:32 +00:00
Agetian
d57c1be193 - Fixed a logic error in LANDS_PRODUCING_MANA card predicate. 2017-02-04 07:27:23 +00:00
Hanmac
31d2148d37 CardUtil: LKICopy: copy all States, not just the current one. needed to get the CMC of a Transformed card right 2017-02-04 06:18:28 +00:00
Hanmac
673d455703 GameAction: clearETBCounters if it does enter the battlefield or not 2017-02-02 18:46:28 +00:00
Agetian
6df567e07d - Reverted the previous change, committed a correct fix for description generation for Sidar Kondo of Jamuraa. 2017-02-02 14:45:11 +00:00
Agetian
4b0fb9ef57 - Fixed description generation for CantBlock. 2017-02-02 14:31:16 +00:00
Agetian
1a96eb8a96 - Fixed Bloodthirst hard-crashing Forge (and updated Bloodthirst cards to account for the change, consistent with other similar parametric keywords). 2017-02-02 08:18:41 +00:00
Hanmac
faa1e000df Card: add EtbCounter functions: that does handle ETB counter effects with Replacements better 2017-02-02 06:08:42 +00:00
Agetian
d5534f40ea - Simple one-line implementation of getTriggeringAbility 2017-01-31 09:15:39 +00:00
Agetian
4cbd24d2db - Fixed logic in getTriggeringAbility that caused infinite loops in certain conditions. 2017-01-31 09:02:54 +00:00