fix Dueling Grounds applying to noncreatures (#11662)

This commit is contained in:
xenohedron 2024-01-16 00:14:39 -05:00 committed by GitHub
parent 7838e2b7cf
commit 53f8a3eba7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -55,7 +55,7 @@ class NoMoreThanOneCreatureCanAttackEachTurnEffect extends RestrictionEffect {
@Override @Override
public boolean applies(Permanent permanent, Ability source, Game game) { public boolean applies(Permanent permanent, Ability source, Game game) {
return true; return permanent != null && permanent.isCreature(game);
} }
@Override @Override
@ -83,7 +83,7 @@ class NoMoreThanOneCreatureCanBlockEachTurnEffect extends RestrictionEffect {
@Override @Override
public boolean applies(Permanent permanent, Ability source, Game game) { public boolean applies(Permanent permanent, Ability source, Game game) {
return true; return permanent != null && permanent.isCreature(game);
} }
@Override @Override