* Lion's Eye Diamond - Fixed that it now only can be cast at the time an instant spell could be cast.

This commit is contained in:
LevelX2 2014-12-27 03:51:10 +01:00
parent c958a1af25
commit 8d8a2074f0
5 changed files with 40 additions and 2 deletions

View file

@ -1,4 +1,4 @@
/*
/*
* Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are
@ -39,6 +39,8 @@ import mage.cards.CardImpl;
import mage.constants.CardType;
import mage.constants.Rarity;
import mage.constants.Zone;
import mage.game.Game;
import mage.players.Player;
/**
*
@ -82,6 +84,15 @@ class LionsEyeDiamondAbility extends ManaAbility {
super(ability);
}
@Override
public boolean canActivate(UUID playerId, Game game) {
Player player = game.getPlayer(playerId);
if (player != null && !player.isInPayManaMode()) {
return super.canActivate(playerId, game);
}
return false;
}
@Override
public LionsEyeDiamondAbility copy() {
return new LionsEyeDiamondAbility(this);