Fix Lashknife Barrier effect (#10223)

This commit is contained in:
xenohedron 2023-04-20 18:25:44 -04:00 committed by GitHub
parent ae02476170
commit 1eb6645f87
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -76,8 +76,8 @@ class LashknifeBarrierEffect extends ReplacementEffectImpl {
@Override
public boolean applies(GameEvent event, Ability source, Game game) {
Permanent creature = game.getPermanent(event.getTargetId());
return creature != null && creature.isPlaneswalker(game) && creature.isControlledBy(source.getControllerId());
Permanent permanent = game.getPermanent(event.getTargetId());
return permanent != null && permanent.isCreature(game) && permanent.isControlledBy(source.getControllerId());
}
}