mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
Make sure lands via hideaway respects 305.2
This commit is contained in:
parent
f06e6a7bbb
commit
5f7d710b5e
2 changed files with 34 additions and 1 deletions
|
|
@ -37,6 +37,8 @@ import mage.game.Game;
|
|||
import mage.players.Player;
|
||||
import mage.util.CardUtil;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author LevelX2
|
||||
*
|
||||
|
|
@ -75,7 +77,8 @@ public class HideawayPlayEffect extends OneShotEffect {
|
|||
* and you haven't already played a land that turn. This counts as your land play for the turn.
|
||||
*/
|
||||
if (card.getCardType().contains(CardType.LAND)) {
|
||||
if (controller.getLandsPlayed() > 0 || !game.getActivePlayerId().equals(controller.getId())) {
|
||||
UUID playerId = controller.getId();
|
||||
if (!game.getActivePlayerId().equals(playerId) || !game.getPlayer(playerId).canPlayLand()) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue