Allow morph lands to be cast face down at instant speed (#7169)

This commit is contained in:
Daniel Bomar 2021-01-01 11:42:54 -06:00 committed by GitHub
parent 1862b16d04
commit 923cf1e3ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 2 deletions

View file

@ -3387,7 +3387,8 @@ public abstract class PlayerImpl implements Player, Serializable {
// Even mana cost can't be checked here without lookahead
// So make it available all the time
boolean canUse;
if (ability instanceof MorphAbility && object instanceof Card && game.canPlaySorcery(getId())) {
if (ability instanceof MorphAbility && object instanceof Card && (game.canPlaySorcery(getId()) ||
(null != game.getContinuousEffects().asThough(object.getId(), AsThoughEffectType.CAST_AS_INSTANT, playAbility, this.getId(), game)))) {
canUse = canPlayCardByAlternateCost((Card) object, availableMana, playAbility, game);
} else {
canUse = canPlay(playAbility, availableMana, object, game); // canPlay already checks alternative source costs and all conditions