Allow null to be acceptable (#4653)

This commit is contained in:
tool4ever
2024-02-09 14:15:54 +01:00
committed by GitHub
parent f45d17e368
commit 541d8e9e1a
2 changed files with 4 additions and 3 deletions

View File

@@ -237,10 +237,11 @@ public abstract class CardTraitBase extends GameObject implements IHasCardView,
} }
public boolean matchesValidParam(String param, final Object o, final Card srcCard) { public boolean matchesValidParam(String param, final Object o, final Card srcCard) {
boolean result = hasParam("Invert" + param);
if (hasParam(param) && !matchesValid(o, getParam(param).split(","), srcCard)) { if (hasParam(param) && !matchesValid(o, getParam(param).split(","), srcCard)) {
return false; return result;
} }
return true; return !result;
} }
public boolean matchesValidParam(String param, final Object o) { public boolean matchesValidParam(String param, final Object o) {

View File

@@ -3,7 +3,7 @@ ManaCost:1 W
Types:Creature Gnome Wizard Types:Creature Gnome Wizard
PT:2/2 PT:2/2
K:Flash K:Flash
T:Mode$ ChangesZoneAll | ValidCards$ Land.OppCtrl | ValidCause$ !LandAbility | Destination$ Battlefield | TriggerZones$ Battlefield | ResolvedLimit$ 1 | Execute$ TrigSearch | OptionalDecider$ You | TriggerDescription$ Mold Earth — Whenever one or more lands enter the battlefield under an opponent's control without being played, you may search your library for a Plains card, put it onto the battlefield tapped, then shuffle. Do this only once each turn. T:Mode$ ChangesZoneAll | ValidCards$ Land.OppCtrl | ValidCause$ LandAbility | InvertValidCause$ True | Destination$ Battlefield | TriggerZones$ Battlefield | ResolvedLimit$ 1 | Execute$ TrigSearch | OptionalDecider$ You | TriggerDescription$ Mold Earth — Whenever one or more lands enter the battlefield under an opponent's control without being played, you may search your library for a Plains card, put it onto the battlefield tapped, then shuffle. Do this only once each turn.
SVar:TrigSearch:DB$ ChangeZone | Origin$ Library | Destination$ Battlefield | Tapped$ True | ChangeType$ Card.Plains | ChangeNum$ 1 | ShuffleNonMandatory$ True SVar:TrigSearch:DB$ ChangeZone | Origin$ Library | Destination$ Battlefield | Tapped$ True | ChangeType$ Card.Plains | ChangeNum$ 1 | ShuffleNonMandatory$ True
AI:RemoveDeck:Random AI:RemoveDeck:Random
Oracle:Flash\nMold Earth — Whenever one or more lands enter the battlefield under an opponent's control without being played, you may search your library for a Plains card, put it onto the battlefield tapped, then shuffle. Do this only once each turn. Oracle:Flash\nMold Earth — Whenever one or more lands enter the battlefield under an opponent's control without being played, you may search your library for a Plains card, put it onto the battlefield tapped, then shuffle. Do this only once each turn.