From d8c23071538b5305a1d4c2d8aa348f83c60ff681 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Tue, 21 Jul 2015 15:21:35 +0200 Subject: [PATCH] * Omniscience - Fixed that by Omniscience playable cards were no longer marked as playable. --- Mage.Sets/src/mage/sets/magic2013/Omniscience.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Mage.Sets/src/mage/sets/magic2013/Omniscience.java b/Mage.Sets/src/mage/sets/magic2013/Omniscience.java index 1b2f082a67..155d366fce 100644 --- a/Mage.Sets/src/mage/sets/magic2013/Omniscience.java +++ b/Mage.Sets/src/mage/sets/magic2013/Omniscience.java @@ -122,10 +122,14 @@ class IsBeingCastFromHandCondition implements Condition { UUID splitCardId = ((Card) object).getMainCard().getId(); object = game.getObject(splitCardId); } - if (object instanceof Spell) { + if (object instanceof Spell) { // needed to check if it can be cast by alternate cost Spell spell = (Spell) object; return spell.getFromZone() == Zone.HAND; } + if (object instanceof Card) { // needed for the check what's playable + Card card = (Card) object; + return game.getPlayer(card.getOwnerId()).getHand().get(card.getId(), game) != null; + } return false; }