mirror of
https://github.com/correl/mage.git
synced 2024-11-16 03:00:12 +00:00
Enhanced Cavern of Souls
This commit is contained in:
parent
e759f8a0fc
commit
108cf43069
1 changed files with 7 additions and 3 deletions
|
@ -63,12 +63,14 @@ import java.util.UUID;
|
||||||
*/
|
*/
|
||||||
public class CavernOfSouls extends CardImpl<CavernOfSouls> {
|
public class CavernOfSouls extends CardImpl<CavernOfSouls> {
|
||||||
|
|
||||||
|
private static final String ruleText = "As Cavern of Souls enters the battlefield, choose a creature type";
|
||||||
|
|
||||||
public CavernOfSouls(UUID ownerId) {
|
public CavernOfSouls(UUID ownerId) {
|
||||||
super(ownerId, 226, "Cavern of Souls", Rarity.RARE, new CardType[]{CardType.LAND}, "");
|
super(ownerId, 226, "Cavern of Souls", Rarity.RARE, new CardType[]{CardType.LAND}, "");
|
||||||
this.expansionSetCode = "AVR";
|
this.expansionSetCode = "AVR";
|
||||||
|
|
||||||
// As Cavern of Souls enters the battlefield, choose a creature type.
|
// As Cavern of Souls enters the battlefield, choose a creature type.
|
||||||
this.addAbility(new EntersBattlefieldAbility(new CavernOfSoulsEffect()));
|
this.addAbility(new EntersBattlefieldAbility(new CavernOfSoulsEffect(), ruleText));
|
||||||
|
|
||||||
// {tap}: Add {1} to your mana pool.
|
// {tap}: Add {1} to your mana pool.
|
||||||
this.addAbility(new ColorlessManaAbility());
|
this.addAbility(new ColorlessManaAbility());
|
||||||
|
@ -113,6 +115,7 @@ class CavernOfSoulsEffect extends OneShotEffect<CavernOfSoulsEffect> {
|
||||||
}
|
}
|
||||||
game.informPlayers(permanent.getName() + ": " + player.getName() + " has chosen " + typeChoice.getChoice());
|
game.informPlayers(permanent.getName() + ": " + player.getName() + " has chosen " + typeChoice.getChoice());
|
||||||
game.getState().setValue(permanent.getId() + "_type", typeChoice.getChoice());
|
game.getState().setValue(permanent.getId() + "_type", typeChoice.getChoice());
|
||||||
|
permanent.addInfo("chosen type", "<i>Chosen type: " + typeChoice.getChoice() + "</i>");
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -202,7 +205,8 @@ class CavernOfSoulsCantCounterEffect extends ReplacementEffectImpl<CavernOfSouls
|
||||||
|
|
||||||
public CavernOfSoulsCantCounterEffect() {
|
public CavernOfSoulsCantCounterEffect() {
|
||||||
super(Constants.Duration.WhileOnBattlefield, Constants.Outcome.Benefit);
|
super(Constants.Duration.WhileOnBattlefield, Constants.Outcome.Benefit);
|
||||||
staticText = "that spell can't be countered";
|
//staticText = "that spell can't be countered";
|
||||||
|
staticText = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public CavernOfSoulsCantCounterEffect(final CavernOfSoulsCantCounterEffect effect) {
|
public CavernOfSoulsCantCounterEffect(final CavernOfSoulsCantCounterEffect effect) {
|
||||||
|
|
Loading…
Reference in a new issue