mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +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.MageObject;
|
||||||
import mage.Mana;
|
import mage.Mana;
|
||||||
import mage.abilities.Ability;
|
import mage.abilities.Ability;
|
||||||
import mage.abilities.ActivatedAbility;
|
|
||||||
import mage.abilities.common.SimpleActivatedAbility;
|
import mage.abilities.common.SimpleActivatedAbility;
|
||||||
import mage.abilities.common.SimpleStaticAbility;
|
import mage.abilities.common.SimpleStaticAbility;
|
||||||
import mage.abilities.costs.common.TapSourceCost;
|
import mage.abilities.costs.common.TapSourceCost;
|
||||||
|
@ -79,7 +78,9 @@ enum ZirdaTheDawnwakerCompanionCondition implements CompanionCondition {
|
||||||
.allMatch(card -> card
|
.allMatch(card -> card
|
||||||
.getAbilities()
|
.getAbilities()
|
||||||
.stream()
|
.stream()
|
||||||
.anyMatch(ActivatedAbility.class::isInstance)
|
.map(Ability::getAbilityType)
|
||||||
|
.anyMatch(abilityType -> abilityType == AbilityType.ACTIVATED
|
||||||
|
|| abilityType == AbilityType.MANA)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue