* Omniscience - Fixed that by Omniscience playable cards were no longer marked as playable.

This commit is contained in:
LevelX2 2015-07-21 15:21:35 +02:00
parent cbc2518c05
commit d8c2307153

View file

@ -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;
}