mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
Text and coding style fixes from review
This commit is contained in:
parent
96bbe01aae
commit
c1db04812d
5 changed files with 9 additions and 12 deletions
|
@ -56,7 +56,7 @@ public class MaskOfIntolerance extends CardImpl {
|
||||||
// At the beginning of each player's upkeep, if there are four or more basic land types among lands that player controls, Mask of Intolerance deals 3 damage to him or her.
|
// At the beginning of each player's upkeep, if there are four or more basic land types among lands that player controls, Mask of Intolerance deals 3 damage to him or her.
|
||||||
TriggeredAbility ability = new BeginningOfUpkeepTriggeredAbility(Zone.BATTLEFIELD, new DamageTargetEffect(3), TargetController.ANY, false);
|
TriggeredAbility ability = new BeginningOfUpkeepTriggeredAbility(Zone.BATTLEFIELD, new DamageTargetEffect(3), TargetController.ANY, false);
|
||||||
this.addAbility(new ConditionalTriggeredAbility(ability, new MaskOfIntoleranceCondition(),
|
this.addAbility(new ConditionalTriggeredAbility(ability, new MaskOfIntoleranceCondition(),
|
||||||
"At the beginning of each player's upkeep, if there are four or more basic land types among lands that player controls, Mask of Intolerance deals 3 damage to him or her."));
|
"At the beginning of each player's upkeep, if there are four or more basic land types among lands that player controls, {this} deals 3 damage to him or her."));
|
||||||
}
|
}
|
||||||
|
|
||||||
public MaskOfIntolerance(final MaskOfIntolerance card) {
|
public MaskOfIntolerance(final MaskOfIntolerance card) {
|
||||||
|
|
|
@ -67,9 +67,6 @@ public class MaliciousAdvice extends CardImpl {
|
||||||
effect.setText("Tap X target artifacts, creatures, and/or lands");
|
effect.setText("Tap X target artifacts, creatures, and/or lands");
|
||||||
this.getSpellAbility().addEffect(effect);
|
this.getSpellAbility().addEffect(effect);
|
||||||
this.getSpellAbility().addEffect(new LoseLifeSourceControllerEffect(new ManacostVariableValue()));
|
this.getSpellAbility().addEffect(new LoseLifeSourceControllerEffect(new ManacostVariableValue()));
|
||||||
// Correct number of targets will be set in adjustTargets
|
|
||||||
// I'm not sure if/why this needs to be here, but other such cards do have it...
|
|
||||||
this.getSpellAbility().addTarget(new TargetPermanent(filter));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -95,7 +95,7 @@ class AddleEffect extends OneShotEffect {
|
||||||
controller.choose(outcome, choice, game);
|
controller.choose(outcome, choice, game);
|
||||||
ObjectColor color = choice.getColor();
|
ObjectColor color = choice.getColor();
|
||||||
if(color != null) {
|
if(color != null) {
|
||||||
game.informPlayers(new StringBuilder(controller.getLogName()).append(" chooses ").append(color).toString());
|
game.informPlayers(controller.getLogName() + " chooses " + color + ".");
|
||||||
FilterCard filter = new FilterCard();
|
FilterCard filter = new FilterCard();
|
||||||
filter.add(new ColorPredicate(color));
|
filter.add(new ColorPredicate(color));
|
||||||
Effect effect = new DiscardCardYouChooseTargetEffect(filter);
|
Effect effect = new DiscardCardYouChooseTargetEffect(filter);
|
||||||
|
|
|
@ -15,7 +15,7 @@ public class DomainValue implements DynamicValue {
|
||||||
|
|
||||||
private Integer amount;
|
private Integer amount;
|
||||||
private boolean countTargetPlayer;
|
private boolean countTargetPlayer;
|
||||||
private UUID player;
|
private UUID playerId;
|
||||||
|
|
||||||
public DomainValue() {
|
public DomainValue() {
|
||||||
this(1);
|
this(1);
|
||||||
|
@ -34,15 +34,15 @@ public class DomainValue implements DynamicValue {
|
||||||
this.countTargetPlayer = countTargetPlayer;
|
this.countTargetPlayer = countTargetPlayer;
|
||||||
}
|
}
|
||||||
|
|
||||||
public DomainValue(Integer amount, UUID player) {
|
public DomainValue(Integer amount, UUID playerId) {
|
||||||
this(amount, false);
|
this(amount, false);
|
||||||
this.player = player;
|
this.playerId = playerId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public DomainValue(final DomainValue dynamicValue) {
|
public DomainValue(final DomainValue dynamicValue) {
|
||||||
this.amount = dynamicValue.amount;
|
this.amount = dynamicValue.amount;
|
||||||
this.countTargetPlayer = dynamicValue.countTargetPlayer;
|
this.countTargetPlayer = dynamicValue.countTargetPlayer;
|
||||||
this.player = dynamicValue.player;
|
this.playerId = dynamicValue.playerId;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -53,8 +53,8 @@ public class DomainValue implements DynamicValue {
|
||||||
int haveSwamps = 0;
|
int haveSwamps = 0;
|
||||||
int haveForests = 0;
|
int haveForests = 0;
|
||||||
UUID targetPlayer;
|
UUID targetPlayer;
|
||||||
if(player != null) {
|
if(playerId != null) {
|
||||||
targetPlayer = player;
|
targetPlayer = playerId;
|
||||||
}
|
}
|
||||||
else if(countTargetPlayer) {
|
else if(countTargetPlayer) {
|
||||||
targetPlayer = sourceAbility.getTargets().getFirstTarget();
|
targetPlayer = sourceAbility.getTargets().getFirstTarget();
|
||||||
|
|
|
@ -82,7 +82,7 @@ public class DamageAttachedControllerEffect extends OneShotEffect {
|
||||||
if (staticText != null && !staticText.isEmpty()) {
|
if (staticText != null && !staticText.isEmpty()) {
|
||||||
return staticText;
|
return staticText;
|
||||||
}
|
}
|
||||||
return "{this} deals " + amount + " to that creature's controller";
|
return "{this} deals " + amount + " damage to that creature's controller";
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue