forked from External/mage
moved faceDown property from Card to CardState
This commit is contained in:
parent
d7b9a4a979
commit
9ad8530dee
61 changed files with 378 additions and 224 deletions
|
|
@ -52,10 +52,10 @@ public class FaceDownSourceCondition implements Condition {
|
|||
MageObject mageObject = game.getObject(source.getSourceId());
|
||||
if (mageObject != null) {
|
||||
if (mageObject instanceof Permanent) {
|
||||
return ((Permanent)mageObject).isFaceDown();
|
||||
return ((Permanent)mageObject).isFaceDown(game);
|
||||
}
|
||||
if (mageObject instanceof Card) {
|
||||
return ((Card)mageObject).isFaceDown();
|
||||
return ((Card)mageObject).isFaceDown(game);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue