Commit Graph

1768 Commits

Author SHA1 Message Date
Hanmac
32209fc6c0 SpellAbility: add CostDescription function
CharmEffect: add CostDescription into the generated Charm Description
2016-10-24 08:10:35 +00:00
Hanmac
84771d5b47 TriggerHandler: changed OncePerEffect trigger for better checking 2016-10-19 10:36:17 +00:00
Hanmac
6ba369d1db SpellAbilityRestriction:checkZoneRestrictions have it return true for no ZoneRestriction
hopefully it does not break anything
2016-10-19 07:41:03 +00:00
Hanmac
a8654348eb Card: fixed length check for Kicker 2016-10-19 07:02:42 +00:00
Hanmac
5dadfaeda5 Card & CardFactoryUtil: changed Kicker and Multikicker to use better parsable code,
and add better output in the card text, use Reminder text too
2016-10-19 06:53:04 +00:00
Hanmac
68344a8c05 Kicker: do it as extra Keyword class, to do the special cases with double kicker 2016-10-18 21:09:29 +00:00
Agetian
b44cdc33dd - Attempting to fix Spelltwine by adding the information about the source card's controller to the spell copy for CopyMultipleSpells in AB CopySpellAbility. Please review/update if necessary. 2016-10-17 19:43:57 +00:00
Sol
649953bd1a - Use Collections.sort instead of list.sort 2016-10-14 15:11:57 +00:00
Sol
d7947be4c4 - Fix issue with animation setting -1 to unset PT. 2016-10-14 14:24:22 +00:00
Hanmac
a46d59d4b0 Card & CardPredicates: make hasCMC work with SplitCards 2016-10-14 07:24:16 +00:00
Hanmac
225301db64 CardPredicates: add canBeEnchantedBy and canBeEquippedBy 2016-10-12 13:28:13 +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
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
9e84290281 Fix some warnings. 2016-10-09 22:17:24 +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
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
561e656c44 Player: add OpponentOf to get the Opponents of a defined value 2016-10-07 08:31:35 +00:00
Agetian
09b0db74cc - Added PLOT counter type for Deadly Designs. 2016-10-07 04:28:37 +00:00
Hanmac
d2fb20b341 ChangeZoneEffect: Ninjutsu need to attack the same Defender as Returned Creature 2016-10-06 15:51:04 +00:00
Agetian
0dd3a36ca1 - Attempting to fix Spinal Parasite by adding support for negative power/toughness for creatures.
- Warning: this is an experimental fix which changes several aspects of card loading and P/T get/set functions, may potentially break things. Please test and update as necessary.
2016-10-05 18:11:35 +00:00
excessum
2ecfa4259d - Re-factored Vehicle animation logic into ComputerUtilCost.canPayCost() 2016-10-03 12:30:46 +00:00
Hanmac
3db793be4e Energy Vortex uses Vortex Counters instead of Energy Counters now 2016-10-03 10:25:24 +00:00
Hanmac
fda43166c8 CardFactoryUtil: update cycling to new format 2016-10-02 20:55:24 +00:00
Agetian
7a21c34259 - A somewhat cleaner distinction between normally adding a cost part and doing it in a hacky way for the purpose of EnchantedCost/ExiledCost. 2016-10-01 06:21:40 +00:00
Agetian
adbfea1e3d - More elegant typecasting related to the previous commit. 2016-10-01 06:17:05 +00:00
Agetian
bda9baa4fc - Trying to fix cards like Back from the Brink and Merseine resulting from incorrect copying of mana costs with \EnchantedCost or \Exiled restrictions.
- This is a hack, not sure if it works well enough and doesn't break anything, there's probably a better and more elegant way to fix this, please review.
2016-10-01 06:08:20 +00:00
Sol
5ddd2a7fff - Fix issue with isMonarch on triggers using the wrong parameters 2016-10-01 00:16:46 +00:00
Sol
ff92a4aae6 - Fixing Crew description in the card detail panel 2016-09-30 17:58:49 +00:00
Hanmac
549aa09f71 CostPayment: canPayAdditionalCosts, removed unused activator part 2016-09-30 13:33:22 +00:00
Hanmac
ceea862dac CardUtil: canProduce removed leftover when {1} is turned into {C} 2016-09-30 13:03:29 +00:00
Agetian
3475f7866f - Fixed Gonti, Lord of Luxury revealing a face-down card to the player when the opponent casts it. 2016-09-30 05:19:46 +00:00
Sol
b7e59338c2 - Fix Hazardous Conditions 2016-09-29 15:47:21 +00:00
Sol
a3c82bbc74 - Real fix for Padeem, needed to filter by Types CMC not just any permanents CMC 2016-09-29 15:03:57 +00:00
Hanmac
26e3a55081 GameEntity: use EnumMap for Counters instead of TreeMap 2016-09-28 16:50:27 +00:00
Hanmac
80d76ecbb1 CardUtil: fixed counters map for LKICopy 2016-09-28 16:28:34 +00:00
Agetian
308b89a586 - Fixing some more visual flickering according to friarsol's recommendation (affects cards like Wind Zendikon). 2016-09-27 17:01:05 +00:00
Agetian
80198b8f59 - Added FIXME lines related to the previous commit. 2016-09-27 15:51:58 +00:00
Agetian
22a2c67b83 - Temporarily reverting 26979,28842 to reduce the horrendous flickering when cards such as Gods (e.g. Thassa, God of the Sea) or card type-changing enchantments (e.g. Wind Zendikon) are present on the battlefield.
- Note that this returns the previous bug with some static abilities (e.g. continuous ones) not being cleared off visually from the card (e.g. when Humility is present on the battlefield, certain static effects will still "visually linger" on the card, ditto stuff such as "may play" and so on).
- I couldn't get the best of two worlds, please fix the second issue without reintroducing the first one if possible.
2016-09-27 15:50:19 +00:00
Sol
a4e905ca4b - Fix NPE caused by Disappearing Act/Captured by the Consulate 2016-09-27 13:10:44 +00:00
Sol
ae9af402e9 - greatestCMC property shouldn't be filtering by creatures 2016-09-27 12:52:25 +00:00
drdev
b2cbd1353b Show energy symbols in cost payment 2016-09-27 02:20:43 +00:00
Krazy
ad1696fde2 [maven-release-plugin] prepare for next development iteration 2016-09-26 21:28:01 +00:00