fixed a small error

This commit is contained in:
Evan Kranzler 2019-08-07 13:58:39 -04:00
parent 5ee9ed5fa8
commit d92526d038

View file

@ -116,16 +116,16 @@ class CliffsideRescuerProtectionAbility extends ProtectionAbility {
return true;
}
if (source instanceof Permanent) {
playerSet.stream().noneMatch(((Permanent) source)::isControlledBy);
return playerSet.stream().noneMatch(((Permanent) source)::isControlledBy);
}
if (source instanceof Spell) {
playerSet.stream().noneMatch(((Spell) source)::isControlledBy);
return playerSet.stream().noneMatch(((Spell) source)::isControlledBy);
}
if (source instanceof StackObject) {
playerSet.stream().noneMatch(((StackObject) source)::isControlledBy);
return playerSet.stream().noneMatch(((StackObject) source)::isControlledBy);
}
if (source instanceof Card) { // e.g. for Vengeful Pharaoh
playerSet.stream().noneMatch(((Card) source)::isOwnedBy);
return playerSet.stream().noneMatch(((Card) source)::isOwnedBy);
}
return true;
}