[DMC] fix The Peregrine Dynamo targeting

This commit is contained in:
Evan Kranzler 2022-11-06 22:27:13 -05:00
parent 213b5fddc6
commit 711b864dfe

View file

@ -72,7 +72,7 @@ enum ThePeregrineDynamoPredicate implements ObjectSourcePlayerPredicate<StackObj
if (!(input.getObject() instanceof StackAbility)) {
return false;
}
MageObject sourceObject = input.getSource().getSourceObject(game);
MageObject sourceObject = ((StackAbility) input.getObject()).getSourceObject(game);
return sourceObject != null
&& !sourceObject.getId().equals(input.getSourceId())
&& sourceObject.isLegendary()