Implemented Sawback Manticore

This commit is contained in:
Evan Kranzler 2017-09-29 14:14:48 -04:00
parent 71931a8eea
commit bd0417d917
3 changed files with 97 additions and 0 deletions

View file

@ -41,9 +41,15 @@ import mage.game.permanent.Permanent;
public class SourceMatchesFilterCondition implements Condition {
private FilterPermanent FILTER;
private String text;
public SourceMatchesFilterCondition(FilterPermanent filter) {
this(null, filter);
}
public SourceMatchesFilterCondition(String text, FilterPermanent filter) {
this.FILTER = filter;
this.text = text;
}
@Override
@ -56,4 +62,12 @@ public class SourceMatchesFilterCondition implements Condition {
}
return false;
}
@Override
public String toString() {
if (text != null) {
return text;
}
return super.toString();
}
}