mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
[DSK] Implement Grand Entryway // Elegant Rotunda
This commit is contained in:
parent
a5483496f8
commit
caba72094e
10 changed files with 57 additions and 20 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue