* Fixed a problem with calculation of playable lands.

This commit is contained in:
LevelX2 2015-11-27 20:21:48 +01:00
parent 5a2febc385
commit 121e55f1d7
2 changed files with 2 additions and 7 deletions

View file

@ -56,7 +56,7 @@ public class PlayLandAbility extends ActivatedAbilityImpl {
return false;
}
//20091005 - 114.2a
return game.getPlayer(playerId).canPlayLand();
return game.getActivePlayerId().equals(playerId) && game.getPlayer(playerId).canPlayLand();
}
@Override

View file

@ -1057,12 +1057,7 @@ public abstract class PlayerImpl implements Player, Serializable {
if (!playLandAbility.canActivate(this.playerId, game)) {
return false;
}
if (ignoreTiming) {
if (!game.getActivePlayerId().equals(playerId)) {
// Also if a land can be played during the resolution of another spell, it has to be the turn of the player playing the land
return false;
}
} else if (!game.canPlaySorcery(playerId)) {
if (!ignoreTiming && !game.canPlaySorcery(playerId)) {
return false;
}
//20091005 - 305.1