mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
* Omniscience - Fixed that by Omniscience playable cards were no longer marked as playable.
This commit is contained in:
parent
cbc2518c05
commit
d8c2307153
1 changed files with 5 additions and 1 deletions
|
@ -122,10 +122,14 @@ class IsBeingCastFromHandCondition implements Condition {
|
||||||
UUID splitCardId = ((Card) object).getMainCard().getId();
|
UUID splitCardId = ((Card) object).getMainCard().getId();
|
||||||
object = game.getObject(splitCardId);
|
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;
|
Spell spell = (Spell) object;
|
||||||
return spell.getFromZone() == Zone.HAND;
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue