From 81a1e8152500df87f4aaf6d35a7c3b03fa4b4ca0 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Tue, 10 Oct 2017 19:27:03 -0400 Subject: [PATCH] fixed being able to cast spells from an opponents hand when revealed. (fixes #4102) --- Mage/src/main/java/mage/abilities/SpellAbility.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Mage/src/main/java/mage/abilities/SpellAbility.java b/Mage/src/main/java/mage/abilities/SpellAbility.java index 7c6228f5ce8..f09f246b7f0 100644 --- a/Mage/src/main/java/mage/abilities/SpellAbility.java +++ b/Mage/src/main/java/mage/abilities/SpellAbility.java @@ -97,9 +97,11 @@ public class SpellAbility extends ActivatedAbilityImpl { return false; } // fix for Gitaxian Probe and casting opponent's spells - if (!game.getContinuousEffects().asThough(getSourceId(), AsThoughEffectType.PLAY_FROM_NOT_OWN_HAND_ZONE, playerId, game) - && !controllerId.equals(playerId) && getZone() != Zone.HAND) { - return false; + if (!game.getContinuousEffects().asThough(getSourceId(), AsThoughEffectType.PLAY_FROM_NOT_OWN_HAND_ZONE, playerId, game)) { + Card card = game.getCard(sourceId); + if (!(card != null && card.getOwnerId() == playerId)) { + return false; + } } // Check if rule modifying events prevent to cast the spell in check playable mode if (this.isCheckPlayableMode()) {