mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
Fixed some bug
This commit is contained in:
parent
e9c2c6caa1
commit
a2ec35a616
1 changed files with 4 additions and 8 deletions
|
@ -92,22 +92,18 @@ 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue