mirror of
https://github.com/magefree/mage.git
synced 2026-01-24 20:29:19 -08:00
* 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:
parent
c958a1af25
commit
8d8a2074f0
5 changed files with 40 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue