mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 03:22:00 -08:00
- Lurrus of the Dream-Den will now only allow casting of cards from the controller's graveyard during the controller's turn.
This commit is contained in:
parent
da03e7c50b
commit
eb242443fc
1 changed files with 2 additions and 1 deletions
|
|
@ -100,7 +100,8 @@ class LurrusOfTheDreamDenCastFromGraveyardEffect extends AsThoughEffectImpl {
|
||||||
@Override
|
@Override
|
||||||
public boolean applies(UUID objectId, Ability source, UUID affectedControllerId, Game game) {
|
public boolean applies(UUID objectId, Ability source, UUID affectedControllerId, Game game) {
|
||||||
if (source.isControlledBy(affectedControllerId)
|
if (source.isControlledBy(affectedControllerId)
|
||||||
&& Zone.GRAVEYARD.equals(game.getState().getZone(objectId))) {
|
&& Zone.GRAVEYARD.equals(game.getState().getZone(objectId))
|
||||||
|
&& game.isActivePlayer(source.getControllerId())) { // only during your turn
|
||||||
Card objectCard = game.getCard(objectId);
|
Card objectCard = game.getCard(objectId);
|
||||||
Permanent sourceObject = game.getPermanent(source.getSourceId());
|
Permanent sourceObject = game.getPermanent(source.getSourceId());
|
||||||
if (sourceObject != null && objectCard != null
|
if (sourceObject != null && objectCard != null
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue