fixed Covetous Urge not allowing the exiled card to be cast

This commit is contained in:
Evan Kranzler 2019-09-25 10:07:54 -04:00
parent c4aebb49db
commit 56ede98b03

View file

@ -127,12 +127,11 @@ class CovetousUrgeCastFromExileEffect extends AsThoughEffectImpl {
@Override
public boolean applies(UUID sourceId, Ability source, UUID affectedControllerId, Game game) {
Card card = mor.getCard(game);
if (card == null || !sourceId.equals(card.getId())
|| !source.isControlledBy(affectedControllerId)) {
if (card == null) {
discard();
return false;
}
discard();
return false;
return source.isControlledBy(affectedControllerId);
}
}