mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 12:52:06 -08:00
SearchLibraryPutInPlayEffect: automatic outcome
This commit is contained in:
parent
6de43dc06e
commit
3b02a42ddf
2 changed files with 9 additions and 4 deletions
|
|
@ -38,14 +38,19 @@ public class SearchLibraryPutInPlayEffect extends SearchEffect {
|
|||
}
|
||||
|
||||
public SearchLibraryPutInPlayEffect(TargetCardInLibrary target, boolean tapped, boolean forceShuffle, Outcome outcome) {
|
||||
this(target, tapped, forceShuffle, false, outcome);
|
||||
this(target, tapped, forceShuffle, false);
|
||||
}
|
||||
|
||||
public SearchLibraryPutInPlayEffect(TargetCardInLibrary target, boolean tapped, boolean forceShuffle, boolean optional, Outcome outcome) {
|
||||
super(target, outcome);
|
||||
public SearchLibraryPutInPlayEffect(TargetCardInLibrary target, boolean tapped, boolean forceShuffle, boolean optional) {
|
||||
super(target, Outcome.PutCardInPlay);
|
||||
this.tapped = tapped;
|
||||
this.forceShuffle = forceShuffle;
|
||||
this.optional = optional;
|
||||
if (target.getDescription().contains("land")) {
|
||||
this.outcome = Outcome.PutLandInPlay;
|
||||
} else if (target.getDescription().contains("creature")) {
|
||||
this.outcome = Outcome.PutCreatureInPlay;
|
||||
}
|
||||
staticText = (optional ? "you may " : "")
|
||||
+ "search your library for "
|
||||
+ target.getDescription()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue