mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
fixed Zirda, the Dawnwaker companion condition
This commit is contained in:
parent
214765ddd8
commit
186239ffa0
1 changed files with 3 additions and 2 deletions
|
@ -4,7 +4,6 @@ import mage.MageInt;
|
|||
import mage.MageObject;
|
||||
import mage.Mana;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.ActivatedAbility;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.costs.common.TapSourceCost;
|
||||
|
@ -79,7 +78,9 @@ enum ZirdaTheDawnwakerCompanionCondition implements CompanionCondition {
|
|||
.allMatch(card -> card
|
||||
.getAbilities()
|
||||
.stream()
|
||||
.anyMatch(ActivatedAbility.class::isInstance)
|
||||
.map(Ability::getAbilityType)
|
||||
.anyMatch(abilityType -> abilityType == AbilityType.ACTIVATED
|
||||
|| abilityType == AbilityType.MANA)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue