fixed an error

This commit is contained in:
Evan Kranzler 2020-04-12 13:00:02 -04:00
parent 199fc37c32
commit 5fdf1a8ddd

View file

@ -52,17 +52,20 @@ public final class LavabrinkVenturer extends CardImpl {
class LavabrinkVenturerEffect extends GainAbilitySourceEffect { class LavabrinkVenturerEffect extends GainAbilitySourceEffect {
private static final FilterObject nullFilter = new FilterObject("nothing");
private static final FilterObject oddFilter = new FilterObject("odd converted mana costs"); private static final FilterObject oddFilter = new FilterObject("odd converted mana costs");
private static final FilterObject evenFilter = new FilterObject("even converted mana costs"); private static final FilterObject evenFilter = new FilterObject("even converted mana costs");
static { static {
nullFilter.add(ConvertedManaCostParityPredicate.ODD);
nullFilter.add(ConvertedManaCostParityPredicate.EVEN);
oddFilter.add(ConvertedManaCostParityPredicate.ODD); oddFilter.add(ConvertedManaCostParityPredicate.ODD);
evenFilter.add(ConvertedManaCostParityPredicate.EVEN); evenFilter.add(ConvertedManaCostParityPredicate.EVEN);
} }
LavabrinkVenturerEffect() { LavabrinkVenturerEffect() {
super((Ability) null); super(new ProtectionAbility(nullFilter));
this.addDependedToType(DependencyType.AddingAbility); this.ability.setRuleVisible(false);
staticText = "{this} has protection from each converted mana cost of the chosen value."; staticText = "{this} has protection from each converted mana cost of the chosen value.";
} }