[WOE] Implement Cheeky House-Mouse (#10945)

This commit is contained in:
Susucre 2023-08-23 05:14:04 +02:00 committed by GitHub
parent 4d3daaa5fa
commit 65dba6c92d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 55 additions and 4 deletions

View file

@ -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;
}