1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-04-13 09:11:06 -09:00

Fixed Yarok's Fenlurker

This commit is contained in:
jeffwadsworth 2019-11-22 08:43:55 -06:00
parent 6d21c9d3dc
commit db9bdfdd5c

View file

@ -75,7 +75,8 @@ class YaroksFenlurkerEffect extends OneShotEffect {
Map<UUID, Cards> cardsToExile = new HashMap<>(); Map<UUID, Cards> cardsToExile = new HashMap<>();
for (UUID opponentId : game.getOpponents(source.getControllerId())) { for (UUID opponentId : game.getOpponents(source.getControllerId())) {
Player opponent = game.getPlayer(opponentId); Player opponent = game.getPlayer(opponentId);
if (opponent == null) { if (opponent == null
|| opponent.getHand().isEmpty()) {
continue; continue;
} }
int numberOfCardsToExile = Math.min(1, opponent.getHand().size()); int numberOfCardsToExile = Math.min(1, opponent.getHand().size());