Fix Void Winnower causing noncreature permanents to not be able to block

This commit is contained in:
PurpleCrowbar 2023-05-03 16:45:28 +01:00
parent aa4cd89ac1
commit f5ea6565a4

View file

@ -113,7 +113,7 @@ class VoidWinnowerCantBlockEffect extends RestrictionEffect {
public boolean applies(Permanent permanent, Ability source, Game game) {
if (game.getOpponents(source.getControllerId()).contains(permanent.getControllerId())) {
// the low bit will always be set on an odd number.
return (permanent.getManaValue() & 1) == 0;
return (permanent.getManaValue() & 1) == 0 && permanent.isCreature(game);
}
return false;
}