forked from External/mage
[KLD] various text fixes
This commit is contained in:
parent
83713f36d0
commit
cc8ddbfd7c
40 changed files with 249 additions and 230 deletions
|
|
@ -1,6 +1,7 @@
|
|||
package mage.abilities.effects.common.combat;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.Mode;
|
||||
import mage.abilities.effects.RestrictionEffect;
|
||||
import mage.constants.Duration;
|
||||
import mage.filter.common.FilterCreaturePermanent;
|
||||
|
|
@ -19,11 +20,6 @@ public class CantBeBlockedByAllTargetEffect extends RestrictionEffect {
|
|||
public CantBeBlockedByAllTargetEffect(FilterCreaturePermanent filterBlockedBy, Duration duration) {
|
||||
super(duration);
|
||||
this.filterBlockedBy = filterBlockedBy;
|
||||
staticText = "target creature"
|
||||
+ " can't be blocked "
|
||||
+ (duration == EndOfTurn ? "this turn " : "")
|
||||
+ (filterBlockedBy.getMessage().startsWith("except by") ? "" : "by ")
|
||||
+ filterBlockedBy.getMessage();
|
||||
}
|
||||
|
||||
public CantBeBlockedByAllTargetEffect(final CantBeBlockedByAllTargetEffect effect) {
|
||||
|
|
@ -45,4 +41,17 @@ public class CantBeBlockedByAllTargetEffect extends RestrictionEffect {
|
|||
public CantBeBlockedByAllTargetEffect copy() {
|
||||
return new CantBeBlockedByAllTargetEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getText(Mode mode) {
|
||||
if (staticText != null && !staticText.isEmpty()) {
|
||||
return staticText;
|
||||
}
|
||||
return "target "
|
||||
+ mode.getTargets().get(0).getTargetName()
|
||||
+ " can't be blocked "
|
||||
+ (duration == EndOfTurn ? "this turn " : "")
|
||||
+ (filterBlockedBy.getMessage().startsWith("except by") ? "" : "by ")
|
||||
+ filterBlockedBy.getMessage();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue