mirror of
https://github.com/correl/mage.git
synced 2025-01-11 19:13:02 +00:00
* ChampionAbility - Fixed to work for all creatures.
This commit is contained in:
parent
ae675942e2
commit
d9f88fdd6e
1 changed files with 2 additions and 2 deletions
|
@ -91,7 +91,7 @@ public class ChampionAbility extends StaticAbility {
|
|||
this.subtypes = subtypes;
|
||||
StringBuilder sb = new StringBuilder("another ");
|
||||
ArrayList<Predicate<MageObject>> subtypesPredicates = new ArrayList<>();
|
||||
if (subtypes != null) {
|
||||
if (!subtypes[0].isEmpty()) {
|
||||
int i = 0;
|
||||
for (String subtype : this.subtypes) {
|
||||
subtypesPredicates.add(new SubtypePredicate(subtype));
|
||||
|
@ -107,7 +107,7 @@ public class ChampionAbility extends StaticAbility {
|
|||
}
|
||||
this.objectDescription = sb.toString();
|
||||
FilterControlledPermanent filter = new FilterControlledPermanent(objectDescription);
|
||||
if (subtypes != null) {
|
||||
if (!subtypesPredicates.isEmpty()) {
|
||||
filter.add(Predicates.or(subtypesPredicates));
|
||||
}
|
||||
filter.add(new AnotherPredicate());
|
||||
|
|
Loading…
Reference in a new issue