mirror of
https://github.com/magefree/mage.git
synced 2026-01-09 20:32:06 -08:00
[WOE] Implement Cheeky House-Mouse (#10945)
This commit is contained in:
parent
4d3daaa5fa
commit
65dba6c92d
3 changed files with 55 additions and 4 deletions
|
|
@ -25,17 +25,14 @@ public class CantBeBlockedTargetEffect extends RestrictionEffect {
|
|||
|
||||
public CantBeBlockedTargetEffect(Duration duration) {
|
||||
this(StaticFilters.FILTER_PERMANENT_CREATURE, duration);
|
||||
this.staticText = null;
|
||||
}
|
||||
|
||||
public CantBeBlockedTargetEffect(FilterCreaturePermanent filter, Duration duration) {
|
||||
super(duration, Outcome.Benefit);
|
||||
this.filter = filter;
|
||||
staticText = new StringBuilder("{this} can't be blocked ")
|
||||
.append(filter.getMessage().startsWith("except by") ? "" : "by ").append(filter.getMessage()).toString();
|
||||
}
|
||||
|
||||
public CantBeBlockedTargetEffect(CantBeBlockedTargetEffect effect) {
|
||||
protected CantBeBlockedTargetEffect(final CantBeBlockedTargetEffect effect) {
|
||||
super(effect);
|
||||
this.filter = effect.filter;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue