* Primal Clay - Added text to choice window.

This commit is contained in:
LevelX2 2014-05-31 18:45:10 +02:00
parent fa5ebd5526
commit 9f6c01bde1

View file

@ -92,23 +92,30 @@ class PrimalClayEffect extends ContinuousEffectImpl<PrimalClayEffect> {
switch (layer) { switch (layer) {
case PTChangingEffects_7: case PTChangingEffects_7:
if (sublayer.equals(SubLayer.SetPT_7b)) { if (sublayer.equals(SubLayer.SetPT_7b)) {
if (choice.getChoice().equals("a 3/3 artifact creature")) { switch (choice.getChoice()) {
case "a 3/3 artifact creature":
permanent.getPower().setValue(3); permanent.getPower().setValue(3);
permanent.getToughness().setValue(3); permanent.getToughness().setValue(3);
} else if (choice.getChoice().equals("a 2/2 artifact creature with flying")) { break;
case "a 2/2 artifact creature with flying":
permanent.getPower().setValue(2); permanent.getPower().setValue(2);
permanent.getToughness().setValue(2); permanent.getToughness().setValue(2);
} else if (choice.getChoice().equals("a 1/6 Wall artifact creature with defender")) { break;
case "a 1/6 Wall artifact creature with defender":
permanent.getPower().setValue(1); permanent.getPower().setValue(1);
permanent.getToughness().setValue(6); permanent.getToughness().setValue(6);
break;
} }
} }
break; break;
case AbilityAddingRemovingEffects_6: case AbilityAddingRemovingEffects_6:
if (choice.getChoice().equals("a 2/2 artifact creature with flying")) { switch (choice.getChoice()) {
permanent.addAbility(FlyingAbility.getInstance(), game); case "a 2/2 artifact creature with flying":
} else if (choice.getChoice().equals("a 1/6 Wall artifact creature with defender")) { permanent.addAbility(FlyingAbility.getInstance(), source.getSourceId(), game);
permanent.addAbility(DefenderAbility.getInstance(), game); break;
case "a 1/6 Wall artifact creature with defender":
permanent.addAbility(DefenderAbility.getInstance(), source.getSourceId(), game);
break;
} }
break; break;
} }
@ -134,6 +141,7 @@ class PrimalClayEffect extends ContinuousEffectImpl<PrimalClayEffect> {
class PrimalClayChoice extends ChoiceImpl<PrimalClayChoice> { class PrimalClayChoice extends ChoiceImpl<PrimalClayChoice> {
PrimalClayChoice() { PrimalClayChoice() {
super(true); super(true);
this.setMessage("Choose for Primal Clay to be");
this.choices.add("a 3/3 artifact creature"); this.choices.add("a 3/3 artifact creature");
this.choices.add("a 2/2 artifact creature with flying"); this.choices.add("a 2/2 artifact creature with flying");
this.choices.add("a 1/6 Wall artifact creature with defender"); this.choices.add("a 1/6 Wall artifact creature with defender");