From d80295058c29dccde8664841aa933b6c4b374384 Mon Sep 17 00:00:00 2001 From: Oleg Agafonov Date: Thu, 4 Jul 2019 22:12:45 +0400 Subject: [PATCH] * Lure of Prey - fixed that it restrict to cast any spells in game instead yourself; --- Mage.Sets/src/mage/cards/l/LureOfPrey.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Mage.Sets/src/mage/cards/l/LureOfPrey.java b/Mage.Sets/src/mage/cards/l/LureOfPrey.java index 7189a59a681..9620cf6d736 100644 --- a/Mage.Sets/src/mage/cards/l/LureOfPrey.java +++ b/Mage.Sets/src/mage/cards/l/LureOfPrey.java @@ -1,6 +1,5 @@ package mage.cards.l; -import java.util.UUID; import mage.ObjectColor; import mage.abilities.Ability; import mage.abilities.common.SimpleStaticAbility; @@ -18,8 +17,9 @@ import mage.game.Game; import mage.game.events.GameEvent; import mage.watchers.common.CastSpellLastTurnWatcher; +import java.util.UUID; + /** - * * @author TheElk801 */ public final class LureOfPrey extends CardImpl { @@ -73,12 +73,13 @@ class LureOfPreyRestrictionEffect extends ContinuousRuleModifyingEffectImpl { if (watcher != null) { for (UUID playerId : game.getOpponents(source.getControllerId())) { if (watcher.getAmountOfSpellsPlayerCastOnCurrentTurn(playerId) != 0) { - return false; + return false; // allow to cast } } } + return true; // restrict } - return true; + return false; } @Override