Fixed effect texts

This commit is contained in:
Oleg Agafonov 2020-06-14 04:28:58 +04:00
parent 476cf92ce6
commit ad4be5a9fe
8 changed files with 11 additions and 11 deletions

View file

@ -71,7 +71,7 @@ public class DontUntapInControllersUntapStepTargetEffect extends ContinuousRuleM
if (staticText != null) {
return staticText;
}
return "Target " + mode.getTargets().get(0).getTargetName()
return "target " + mode.getTargets().get(0).getTargetName()
+ " doesn't untap during its controller's untap step" + (getDuration().toString().isEmpty() ? "" : " " + getDuration());
}

View file

@ -77,7 +77,7 @@ public class FightTargetsEffect extends OneShotEffect {
return staticText;
}
return "Target " + mode
return "target " + mode
.getTargets().get(0).getTargetName() + " fights another target " + mode
.getTargets().get(1).getTargetName();
}

View file

@ -53,6 +53,6 @@ public class GetEmblemTargetPlayerEffect extends OneShotEffect {
if (staticText != null && !staticText.isEmpty()) {
return staticText;
}
return "Target " + mode.getTargets().get(0).getTargetName() + " gets an emblem with \"" + emblem.getAbilities().getRules(null).stream().collect(Collectors.joining("; ")) + "\"";
return "target " + mode.getTargets().get(0).getTargetName() + " gets an emblem with \"" + emblem.getAbilities().getRules(null).stream().collect(Collectors.joining("; ")) + "\"";
}
}

View file

@ -48,9 +48,9 @@ public class AttacksIfAbleTargetEffect extends RequirementEffect {
return staticText;
}
if (this.duration == Duration.EndOfTurn) {
return "Target " + mode.getTargets().get(0).getTargetName() + " attacks this turn if able";
return "target " + mode.getTargets().get(0).getTargetName() + " attacks this turn if able";
} else {
return "Target " + mode.getTargets().get(0).getTargetName() + " attacks each turn if able";
return "target " + mode.getTargets().get(0).getTargetName() + " attacks each turn if able";
}
}

View file

@ -54,10 +54,10 @@ public class BlocksIfAbleTargetEffect extends RequirementEffect {
return staticText;
}
if (this.duration == Duration.EndOfTurn) {
return "Target " + mode.getTargets().get(0).getTargetName() + " blocks this turn if able";
return "target " + mode.getTargets().get(0).getTargetName() + " blocks this turn if able";
}
else {
return "Target " + mode.getTargets().get(0).getTargetName() + " blocks each turn if able";
return "target " + mode.getTargets().get(0).getTargetName() + " blocks each turn if able";
}
}

View file

@ -47,9 +47,9 @@ public class CanAttackAsThoughItDidntHaveDefenderTargetEffect extends AsThoughEf
}
if (!mode.getTargets().isEmpty()) {
if (this.duration == Duration.EndOfTurn) {
return "Target " + mode.getTargets().get(0).getTargetName() + " can attack this turn as though it didn't have defender";
return "target " + mode.getTargets().get(0).getTargetName() + " can attack this turn as though it didn't have defender";
} else {
return "Target " + mode.getTargets().get(0).getTargetName() + " can attack as though it didn't have defender";
return "target " + mode.getTargets().get(0).getTargetName() + " can attack as though it didn't have defender";
}
} else {
throw new UnsupportedOperationException("No target defined");

View file

@ -40,6 +40,6 @@ public class LoseAllCreatureTypesTargetEffect extends ContinuousEffectImpl {
if (staticText != null && !staticText.isEmpty()) {
return staticText;
}
return "Target " + mode.getTargets().get(0).getTargetName() + " loses all creature types " + duration.toString();
return "target " + mode.getTargets().get(0).getTargetName() + " loses all creature types " + duration.toString();
}
}

View file

@ -51,6 +51,6 @@ public class AddPoisonCounterTargetEffect extends OneShotEffect {
if(staticText != null && !staticText.isEmpty()) {
return staticText;
}
return "Target " + mode.getTargets().get(0).getTargetName() + " gets " + Integer.toString(amount) + " poison counter(s).";
return "target " + mode.getTargets().get(0).getTargetName() + " gets " + Integer.toString(amount) + " poison counter(s).";
}
}