mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 21:12:04 -08:00
Implemented Sawback Manticore
This commit is contained in:
parent
71931a8eea
commit
bd0417d917
3 changed files with 97 additions and 0 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue