mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
* Hedonist's Trove - Fixed that all players could play the exiled cards.
This commit is contained in:
parent
8c9c4421cd
commit
57e378c1da
1 changed files with 33 additions and 30 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue