mirror of
https://github.com/magefree/mage.git
synced 2026-01-25 12:49:39 -08:00
Some minor changes.
This commit is contained in:
parent
678a46dba8
commit
79f8617cd3
4 changed files with 15 additions and 15 deletions
|
|
@ -70,7 +70,7 @@ public class MassMutiny extends CardImpl {
|
|||
Player opponent = game.getPlayer(opponentId);
|
||||
if (opponent != null) {
|
||||
ability.getTargets().clear();
|
||||
FilterCreaturePermanent filter = new FilterCreaturePermanent("creature from opponent " + opponent.getLogName());
|
||||
FilterCreaturePermanent filter = new FilterCreaturePermanent("creature from opponent " + opponent.getName());
|
||||
filter.add(new ControllerIdPredicate(opponentId));
|
||||
TargetCreaturePermanent target = new TargetCreaturePermanent(0, 1, filter, false);
|
||||
ability.addTarget(target);
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ public class NykthosShrineToNyx extends CardImpl {
|
|||
}
|
||||
|
||||
class NykthosShrineToNyxManaAbility extends ManaAbility {
|
||||
|
||||
|
||||
public NykthosShrineToNyxManaAbility() {
|
||||
super(Zone.BATTLEFIELD, new NykthosDynamicManaEffect(), new GenericManaCost(2));
|
||||
this.addCost(new TapSourceCost());
|
||||
|
|
@ -94,15 +94,14 @@ class NykthosShrineToNyxManaAbility extends ManaAbility {
|
|||
public List<Mana> getNetMana(Game game) {
|
||||
netMana.clear();
|
||||
if (game != null) {
|
||||
for (String colorChoice :ChoiceColor.colorChoices) {
|
||||
netMana.add(((NykthosDynamicManaEffect)this.getEffects().get(0)).computeMana(colorChoice, game, this));
|
||||
for (String colorChoice : ChoiceColor.colorChoices) {
|
||||
netMana.add(((NykthosDynamicManaEffect) this.getEffects().get(0)).computeMana(colorChoice, game, this));
|
||||
}
|
||||
}
|
||||
return netMana;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
class NykthosDynamicManaEffect extends ManaEffect {
|
||||
|
||||
private final Mana computedMana;
|
||||
|
|
@ -132,7 +131,7 @@ class NykthosDynamicManaEffect extends ManaEffect {
|
|||
if (controller.choose(outcome, choice, game)) {
|
||||
computeMana(choice.getChoice(), game, source);
|
||||
checkToFirePossibleEvents(computedMana, game, source);
|
||||
game.getPlayer(source.getControllerId()).getManaPool().addMana(computedMana, game, source);
|
||||
controller.getManaPool().addMana(computedMana, game, source);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
@ -145,10 +144,9 @@ class NykthosDynamicManaEffect extends ManaEffect {
|
|||
return null;
|
||||
}
|
||||
|
||||
|
||||
public Mana computeMana(String color, Game game, Ability source){
|
||||
public Mana computeMana(String color, Game game, Ability source) {
|
||||
this.computedMana.clear();
|
||||
if (color !=null && !color.isEmpty()) {
|
||||
if (color != null && !color.isEmpty()) {
|
||||
switch (color) {
|
||||
case "Red":
|
||||
computedMana.setRed(new DevotionCount(ColoredManaSymbol.R).calculate(game, source, this));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue