[DSK] Implement Grand Entryway // Elegant Rotunda

This commit is contained in:
theelk801 2025-12-07 11:40:43 -05:00
parent a5483496f8
commit caba72094e
10 changed files with 57 additions and 20 deletions

View file

@ -22,19 +22,18 @@ import java.util.UUID;
public abstract class RoomCard extends SplitCard {
private SpellAbilityType lastCastHalf = null;
protected RoomCard(UUID ownerId, CardSetInfo setInfo, CardType[] types, String costsLeft,
String costsRight, SpellAbilityType spellAbilityType) {
super(ownerId, setInfo, costsLeft, costsRight, spellAbilityType, types);
protected RoomCard(UUID ownerId, CardSetInfo setInfo, CardType[] types, String costsLeft, String costsRight) {
super(ownerId, setInfo, costsLeft, costsRight, SpellAbilityType.SPLIT, types);
String[] names = setInfo.getName().split(" // ");
leftHalfCard = new RoomCardHalfImpl(
this.getOwnerId(), new CardSetInfo(names[0], setInfo.getExpansionSetCode(), setInfo.getCardNumber(),
setInfo.getRarity(), setInfo.getGraphicInfo()),
setInfo.getRarity(), setInfo.getGraphicInfo()),
types, costsLeft, this, SpellAbilityType.SPLIT_LEFT);
rightHalfCard = new RoomCardHalfImpl(
this.getOwnerId(), new CardSetInfo(names[1], setInfo.getExpansionSetCode(), setInfo.getCardNumber(),
setInfo.getRarity(), setInfo.getGraphicInfo()),
setInfo.getRarity(), setInfo.getGraphicInfo()),
types, costsRight, this, SpellAbilityType.SPLIT_RIGHT);
// Add the one-shot effect to unlock a door on cast -> ETB
@ -113,7 +112,7 @@ public abstract class RoomCard extends SplitCard {
Abilities<Ability> rightAbilities = roomCard.getRightHalfCard().getAbilities();
for (Ability ability : rightAbilities) {
permanent.addAbility(ability, roomCard.getRightHalfCard().getId(), game,true);
permanent.addAbility(ability, roomCard.getRightHalfCard().getId(), game, true);
}
}
}
@ -173,4 +172,3 @@ class RoomEnterUnlockEffect extends OneShotEffect {
return true;
}
}