Fixed some bug

This commit is contained in:
Zzooouhh 2017-10-26 21:22:08 +02:00 committed by GitHub
parent e9c2c6caa1
commit a2ec35a616

View file

@ -92,20 +92,16 @@ class NoAbilityPredicate implements Predicate<MageObject> {
} }
if (isFaceDown) { if (isFaceDown) {
for (Ability ability : abilities) { for (Ability ability : abilities) {
if (!ability.getSourceId().equals(input.getId())) { if (!ability.getSourceId().equals(input.getId()) && !ability.getClass().equals(JohanVigilanceAbility.class)) {
if (ability.getClass().equals(JohanVigilanceAbility.class)) { return false;
return false;
}
} }
} }
return true; return true;
} }
for (Ability ability : abilities) { for (Ability ability : abilities) {
if (!Objects.equals(ability.getClass(), SpellAbility.class)) { if (!Objects.equals(ability.getClass(), SpellAbility.class) && !ability.getClass().equals(JohanVigilanceAbility.class)) {
if (!ability.getClass().equals(JohanVigilanceAbility.class)) { return false;
return false;
}
} }
} }
return true; return true;