mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
* Fixed handling of Singletons gained to face down creatures (fixes Cloudform giving Flying and Hexproof to enchented card).
This commit is contained in:
parent
993fe37108
commit
65390e09a6
1 changed files with 8 additions and 5 deletions
|
@ -859,11 +859,14 @@ public abstract class AbilityImpl implements Ability {
|
|||
if (!found) {
|
||||
return false;
|
||||
}
|
||||
} else if (object instanceof PermanentCard) {
|
||||
if (((PermanentCard)object).isFaceDown(game)&& !this.getWorksFaceDown()) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
// else if (object instanceof PermanentCard) {
|
||||
// this check prevents Flying to work if assigned to a face down creature
|
||||
// Why is this neccessary??
|
||||
// if (((PermanentCard)object).isFaceDown(game)&& !this.getWorksFaceDown()) {
|
||||
// return false;
|
||||
// }
|
||||
// }
|
||||
|
||||
// check against current state
|
||||
Zone test = game.getState().getZone(parameterSourceId);
|
||||
|
|
Loading…
Reference in a new issue