mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
Allow null to be acceptable (#4653)
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user