[DSK] Implement Underwater Tunnel // Slimy Aquarium

This commit is contained in:
theelk801 2025-12-07 12:01:32 -05:00
parent f61289b297
commit f0d83d3de9
2 changed files with 71 additions and 0 deletions

View file

@ -0,0 +1,70 @@
package mage.cards.u;
import mage.abilities.Ability;
import mage.abilities.common.UnlockThisDoorTriggeredAbility;
import mage.abilities.effects.OneShotEffect;
import mage.abilities.effects.keyword.ManifestDreadEffect;
import mage.abilities.effects.keyword.SurveilEffect;
import mage.cards.CardSetInfo;
import mage.cards.RoomCard;
import mage.constants.CardType;
import mage.constants.Outcome;
import mage.counters.CounterType;
import mage.game.Game;
import mage.game.permanent.Permanent;
import mage.players.Player;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class UnderwaterTunnelSlimyAquarium extends RoomCard {
public UnderwaterTunnelSlimyAquarium(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{U}", "{3}{U}");
// Underwater Tunnel
// When you unlock this door, surveil 2.
this.getLeftHalfCard().addAbility(new UnlockThisDoorTriggeredAbility(new SurveilEffect(2), false, true));
// Slimy Aquarium
// When you unlock this door, manifest dread, then put a +1/+1 counter on that creature.
this.getRightHalfCard().addAbility(new UnlockThisDoorTriggeredAbility(new SlimyAquariumEffect(), false, false));
}
private UnderwaterTunnelSlimyAquarium(final UnderwaterTunnelSlimyAquarium card) {
super(card);
}
@Override
public UnderwaterTunnelSlimyAquarium copy() {
return new UnderwaterTunnelSlimyAquarium(this);
}
}
class SlimyAquariumEffect extends OneShotEffect {
SlimyAquariumEffect() {
super(Outcome.Benefit);
staticText = "manifest dread, then put a +1/+1 counter on that creature";
}
private SlimyAquariumEffect(final SlimyAquariumEffect effect) {
super(effect);
}
@Override
public SlimyAquariumEffect copy() {
return new SlimyAquariumEffect(this);
}
@Override
public boolean apply(Game game, Ability source) {
Player player = game.getPlayer(source.getControllerId());
if (player == null) {
return false;
}
Permanent permanent = ManifestDreadEffect.doManifestDread(player, source, game);
return permanent != null && permanent.addCounters(CounterType.P1P1.createInstance(), source, game);
}
}

View file

@ -369,6 +369,7 @@ public final class DuskmournHouseOfHorror extends ExpansionSet {
cards.add(new SetCardInfo("Undead Sprinter", 350, Rarity.RARE, mage.cards.u.UndeadSprinter.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Under the Skin", 203, Rarity.UNCOMMON, mage.cards.u.UnderTheSkin.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Under the Skin", 323, Rarity.UNCOMMON, mage.cards.u.UnderTheSkin.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Underwater Tunnel // Slimy Aquarium", 79, Rarity.COMMON, mage.cards.u.UnderwaterTunnelSlimyAquarium.class));
cards.add(new SetCardInfo("Unholy Annex // Ritual Chamber", 118, Rarity.RARE, mage.cards.u.UnholyAnnexRitualChamber.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Unholy Annex // Ritual Chamber", 339, Rarity.RARE, mage.cards.u.UnholyAnnexRitualChamber.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Unidentified Hovership", 305, Rarity.RARE, mage.cards.u.UnidentifiedHovership.class, NON_FULL_USE_VARIOUS));