mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
* Enigma Sphinx - Fixed that it was no Artifact type.
This commit is contained in:
parent
be3f7edff7
commit
39d39fbf0c
1 changed files with 7 additions and 11 deletions
|
@ -51,13 +51,10 @@ import mage.players.Player;
|
||||||
public class EnigmaSphinx extends CardImpl {
|
public class EnigmaSphinx extends CardImpl {
|
||||||
|
|
||||||
public EnigmaSphinx(UUID ownerId) {
|
public EnigmaSphinx(UUID ownerId) {
|
||||||
super(ownerId, 106, "Enigma Sphinx", Rarity.RARE, new CardType[]{CardType.CREATURE}, "{4}{W}{U}{B}");
|
super(ownerId, 106, "Enigma Sphinx", Rarity.RARE, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{4}{W}{U}{B}");
|
||||||
this.expansionSetCode = "ARB";
|
this.expansionSetCode = "ARB";
|
||||||
this.subtype.add("Sphinx");
|
this.subtype.add("Sphinx");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
this.power = new MageInt(5);
|
this.power = new MageInt(5);
|
||||||
this.toughness = new MageInt(4);
|
this.toughness = new MageInt(4);
|
||||||
|
|
||||||
|
@ -102,17 +99,16 @@ class EnigmaSphinxEffect extends OneShotEffect {
|
||||||
Card card = game.getCard(source.getSourceId());
|
Card card = game.getCard(source.getSourceId());
|
||||||
if (card != null && game.getState().getZone(source.getSourceId()) == Zone.GRAVEYARD) {
|
if (card != null && game.getState().getZone(source.getSourceId()) == Zone.GRAVEYARD) {
|
||||||
Player owner = game.getPlayer(card.getOwnerId());
|
Player owner = game.getPlayer(card.getOwnerId());
|
||||||
if (card.moveToZone(Zone.LIBRARY, source.getSourceId(), game, true)) {
|
if (owner != null && card.moveToZone(Zone.LIBRARY, source.getSourceId(), game, true)) {
|
||||||
// Move Sphinx to third position
|
// Move Sphinx to third position
|
||||||
Library lib = game.getPlayer(source.getControllerId()).getLibrary();
|
game.informPlayers(card.getName() + " is put into " + owner.getName() +"'s library third from the top");
|
||||||
|
Library lib = owner.getLibrary();
|
||||||
if (lib != null) {
|
if (lib != null) {
|
||||||
Card card1 = lib.removeFromTop(game);
|
Card card1 = lib.removeFromTop(game);
|
||||||
if (card1.getId().equals(source.getSourceId())) {
|
if (card1 != null && card1.getId().equals(source.getSourceId())) {
|
||||||
Card card2 = lib.removeFromTop(game);
|
Card card2 = lib.removeFromTop(game);
|
||||||
Card card3 = lib.removeFromTop(game);
|
Card card3 = lib.removeFromTop(game);
|
||||||
if (card1 != null) {
|
lib.putOnTop(card1, game);
|
||||||
lib.putOnTop(card1, game);
|
|
||||||
}
|
|
||||||
if (card3 != null) {
|
if (card3 != null) {
|
||||||
lib.putOnTop(card3, game);
|
lib.putOnTop(card3, game);
|
||||||
}
|
}
|
||||||
|
@ -126,4 +122,4 @@ class EnigmaSphinxEffect extends OneShotEffect {
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue