mirror of
https://github.com/correl/mage.git
synced 2025-01-12 03:00:13 +00:00
fixed a small error
This commit is contained in:
parent
5ee9ed5fa8
commit
d92526d038
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue