mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
Fixed some bug
This commit is contained in:
parent
e9c2c6caa1
commit
a2ec35a616
1 changed files with 4 additions and 8 deletions
|
@ -92,20 +92,16 @@ class NoAbilityPredicate implements Predicate<MageObject> {
|
|||
}
|
||||
if (isFaceDown) {
|
||||
for (Ability ability : abilities) {
|
||||
if (!ability.getSourceId().equals(input.getId())) {
|
||||
if (ability.getClass().equals(JohanVigilanceAbility.class)) {
|
||||
return false;
|
||||
}
|
||||
if (!ability.getSourceId().equals(input.getId()) && !ability.getClass().equals(JohanVigilanceAbility.class)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
for (Ability ability : abilities) {
|
||||
if (!Objects.equals(ability.getClass(), SpellAbility.class)) {
|
||||
if (!ability.getClass().equals(JohanVigilanceAbility.class)) {
|
||||
return false;
|
||||
}
|
||||
if (!Objects.equals(ability.getClass(), SpellAbility.class) && !ability.getClass().equals(JohanVigilanceAbility.class)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue