* Fixed handling of Singletons gained to face down creatures (fixes Cloudform giving Flying and Hexproof to enchented card).

This commit is contained in:
LevelX2 2015-03-23 17:36:34 +01:00
parent 993fe37108
commit 65390e09a6

View file

@ -859,11 +859,14 @@ public abstract class AbilityImpl implements Ability {
if (!found) { if (!found) {
return false; 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 // check against current state
Zone test = game.getState().getZone(parameterSourceId); Zone test = game.getState().getZone(parameterSourceId);