* Hedonist's Trove - Fixed that all players could play the exiled cards.

This commit is contained in:
LevelX2 2016-01-29 22:27:01 +01:00
parent 8c9c4421cd
commit 57e378c1da

View file

@ -43,7 +43,6 @@ import mage.constants.Duration;
import mage.constants.Outcome;
import mage.constants.Rarity;
import mage.constants.Zone;
import mage.filter.FilterCard;
import mage.game.ExileZone;
import mage.game.Game;
import mage.players.Player;
@ -138,6 +137,7 @@ class HedonistsTrovePlayLandEffect extends AsThoughEffectImpl {
@Override
public boolean applies(UUID objectId, Ability source, UUID affectedControllerId, Game game) {
if (affectedControllerId.equals(source.getControllerId())) {
Card card = game.getCard(objectId);
MageObject sourceObject = source.getSourceObject(game);
if (card != null && card.getCardType().contains(CardType.LAND) && sourceObject != null) {
@ -147,6 +147,7 @@ class HedonistsTrovePlayLandEffect extends AsThoughEffectImpl {
return exileZone != null && exileZone.contains(objectId);
}
}
}
return false;
}
}
@ -179,6 +180,7 @@ class HedonistsTroveCastNonlandCardsEffect extends AsThoughEffectImpl {
@Override
public boolean applies(UUID objectId, Ability source, UUID affectedControllerId, Game game) {
if (affectedControllerId.equals(source.getControllerId())) {
Card card = game.getCard(objectId);
MageObject sourceObject = source.getSourceObject(game);
if (card != null && !card.getCardType().contains(CardType.LAND) && sourceObject != null) {
@ -200,6 +202,7 @@ class HedonistsTroveCastNonlandCardsEffect extends AsThoughEffectImpl {
}
}
}
}
return false;
}
}