mirror of
https://github.com/correl/mage.git
synced 2024-11-28 19:19:55 +00:00
Fix Void Winnower causing noncreature permanents to not be able to block
This commit is contained in:
parent
aa4cd89ac1
commit
f5ea6565a4
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ class VoidWinnowerCantBlockEffect extends RestrictionEffect {
|
||||||
public boolean applies(Permanent permanent, Ability source, Game game) {
|
public boolean applies(Permanent permanent, Ability source, Game game) {
|
||||||
if (game.getOpponents(source.getControllerId()).contains(permanent.getControllerId())) {
|
if (game.getOpponents(source.getControllerId()).contains(permanent.getControllerId())) {
|
||||||
// the low bit will always be set on an odd number.
|
// 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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue