Commit Graph

1592 Commits

Author SHA1 Message Date
Hanmac
825497833e KeywordWithCost: add parse and improve getReminderText 2016-07-20 06:14:43 +00:00
Hanmac
f047062369 KeywordWithType: add parse of the info 2016-07-20 06:13:40 +00:00
Hanmac
ea545acbf9 StaticAbility: Fixed layer Problem with my recent changes 2016-07-20 05:20:15 +00:00
Hanmac
28f7df0933 StaticAbility & StaticAbilityContinuous: "can't gain or have" is now applied in Ability1 Layer, instead of Rules later. 2016-07-19 19:05:20 +00:00
Agetian
d46c53668b - Fixed Scrying Sheets not showing the top card of the library to the card's controller. 2016-07-19 18:07:57 +00:00
Hanmac
49b00ca650 GameAction: don't clear ExiledWith when card is moved to Stack. (because it can't know if the spell was canceled) 2016-07-19 06:31:27 +00:00
Hanmac
9ca43bcb17 PlayEffect should only forget if the cast was successful 2016-07-19 06:29:37 +00:00
Sol
7661e44e2b - Kaalia of the Vast has a defined Defender 2016-07-18 21:56:42 +00:00
Agetian
d8eba36dcb - A simpler fix for Kaho, Minamo Historian that does not need an extra parameter in AB Play. 2016-07-18 12:54:51 +00:00
Agetian
2ce131f7bb - Added ForgetTargetRemembered to AB Play which removes only one (target) remembered card instead of clearing the entire remembered list.
- Fixed Kaho, Minamo Historian by making it forget cards one by one as they are played.
2016-07-18 10:54:46 +00:00
Hanmac
ec762d652f CombatUtil: add "CARDNAME can block creatures with landwalk abilities as though they didn't have those abilities."
ts not a global deactivating, but a local one.
2016-07-18 07:52:09 +00:00
Hanmac
fc046a582d ReplacementHandler: do FaceDown check for Necropotence 2016-07-18 05:08:08 +00:00
Hanmac
96d1c1c6db CombatUtil: add MustBeBlockedBy for Slayer's Cleaver 2016-07-17 20:12:40 +00:00
drdev
4ecb5e17fa Fix compile warnings 2016-07-17 18:41:00 +00:00
Hanmac
87f47dc570 CardFactoryUtil: add SacrificedThisTurn to be used with Count 2016-07-17 12:42:45 +00:00
Hanmac
60f53fb369 GameAction & Player: move the Sacrifice Trigger to Player and add SacrificedThisTurn to keep track of what was sacrificed. 2016-07-17 12:34:21 +00:00
Hanmac
d0755c4cba TriggerDamageDone: add OncePerEffect 2016-07-17 12:30:13 +00:00
Krazy
6d9a7146b3 [maven-release-plugin] prepare for next development iteration 2016-07-17 00:57:42 +00:00
Krazy
a4ab46bc8c [maven-release-plugin] prepare release forge-1.5.54 2016-07-17 00:57:30 +00:00
Hanmac
0c0ed397e0 AbilityUtils: the Helper should only replace it if card has this variable, otherwise it might be false positives 2016-07-16 11:08:02 +00:00
Hanmac
f7cc29aaa0 AbilityUtils: using ImmutableList for the comperators 2016-07-16 10:56:33 +00:00
Hanmac
6ee50faf8e AbilityUtils: if filtering a ListByType check for other Compare like LT, LE, GT, GE too
it does optimize the calculating
2016-07-16 04:37:53 +00:00
Hanmac
c44876d1e0 Card: hasProperty cmc uses AbilityUtils.calculateAmount to get the compared value 2016-07-16 04:29:43 +00:00
Hanmac
a79d066949 DelayedReveal: use empty string as default to prevent crashing 2016-07-15 16:38:10 +00:00
Hanmac
115c125886 DigEffect: add MessagePrefix for DelayedReveal, to prevent crashing 2016-07-15 16:37:07 +00:00
Hanmac
86de7cd591 GameAction & TriggerSacrificed: give the TriggerSacrificed to CostPaymentStack and its peek.
add WhileKeyword to TriggerSacrificed, to check if a Spell with given Keyword is on CostStack (or its cost is in paying)
Currently used once for Emerge
2016-07-15 14:49:00 +00:00
Hanmac
80ffb62a4a CostPayment & IndividualCostPaymentInstance: need access to the SpellAblity from the PaymentInstance over the CostPayment object 2016-07-15 14:45:00 +00:00
Hanmac
5ff0845311 CostPaymentStack: while not changeable, it should be Iterable to look whats inside 2016-07-15 14:42:45 +00:00
Hanmac
a06b1c8ef1 Player: DiscardToTopOfLibrary and Madness are replacement discards, that should not trigger other Replacement again 2016-07-15 11:16:24 +00:00
Hanmac
811c8ae1e8 DebuffEffect: Protection Keywords with ChosenColor are Capitalized, need to use regex for matching 2016-07-15 10:32:18 +00:00
Hanmac
8d1b533f4f ProtectAllEffect & ProtectEffect: use updateKeywords when a Protection is added 2016-07-15 09:44:29 +00:00
Hanmac
f61cf0f929 StaticAbilityContinuous: applyContinuousAbility: use StringUtils.capitalize for ChosenColor 2016-07-15 09:40:41 +00:00
Hanmac
c1b818e813 DebuffEffect: improved the removing of Protection, while something has protection from all colors or some special wording like Spectra Ward 2016-07-15 08:20:10 +00:00
Hanmac
94fdf94383 Card: add Protection form all colors, this is better than splitting it into different colors 2016-07-14 19:20:25 +00:00
Hanmac
ffd6ab924d CharmEffect: prevent setTargetCard from doing an warning, when copy the target, when no target is given 2016-07-12 18:20:08 +00:00
Hanmac
3dacb43a9c ReplaceDiscard: add ReplacedSource so using it in Player for the Cause of the Discard Effect 2016-07-12 06:21:02 +00:00
Hanmac
56ee36c7a3 AbilityUtils: applyTextChangeEffects: some fixes about textChange
now replacement does not try to replace what was already replaced. (in description with a strike)
exclude the ChosenColor from Any (replace Blue to Blue doesn't make any sense)
for Types does use PluralType, that does help to replace "Forests" with "Plains", but also fixed the Problem with replaceing Creature Types in Keywords which are written as Plural and should stay as such.
2016-07-11 13:41:30 +00:00
Hanmac
6ce4256f2f CardUtil: add LandTypes to plural/singular Maps 2016-07-11 13:33:32 +00:00
Hanmac
7dc270565f CardTraitBase: add OriginalMapParams for TokenEffect 2016-07-11 05:02:43 +00:00
Hanmac
11c414c5d7 Effects: for that which are not direct SubAbilities, apply the changeText if the parent is Intrinsic 2016-07-11 05:01:04 +00:00
Hanmac
4662e9b542 ChangeZoneEffect: removeing a Spell from Stack is special, and does need to set ExiledWith too 2016-07-09 18:22:02 +00:00
Hanmac
d0133a0f86 CopyPermanentEffect: add SetPower and SetToughness, but they should overwrite CDA and they should not copied. 2016-07-08 11:21:44 +00:00
Hanmac
bea96b6aaf CloneEffect: SetPower and SetToughness should overwrite CDA and they should not copied. 2016-07-08 11:17:03 +00:00
Sol
abf66a5555 - Improving how the AI handles certain counterspells especially Hive Mind + Pact of Negation. 2016-07-07 17:54:43 +00:00
Hanmac
641e4cba68 Card: update Type, color and keywords of the view if they have changed on StateChange 2016-07-06 11:22:59 +00:00
swordshine
c6106d7f58 - EMN: Added Lupine Prototype by Marek 14
- EMN: Added Decimator of the Provinces (Emerge)
2016-07-03 08:09:31 +00:00
Hanmac
6db36f78fd Card, and Effects: add ExiledWith Attribute, that is used for Linked Abilities with stuff like "exiled with CARDNAME" 2016-07-02 12:14:45 +00:00
Hanmac
b9fac30bc8 Card: add StrictlySelf to have timestamp check, also add cards where that is used 2016-07-01 17:54:49 +00:00
Hanmac
5dcee79d54 EffectEffect: now does treat emblems different than Effects, also does try to guess the ImageKey from Name for Emblems
shows the PlaneswalkerType for the Emblem but thats only cosmetic.
2016-07-01 17:41:19 +00:00
Sol
a2facc6e39 - Fix issue with Sen Triplets and targeting in controllers zone 2016-06-30 18:22:00 +00:00