mirror of
https://github.com/correl/mage.git
synced 2025-04-13 01:01:11 -09:00
fixed Inspire Awe implementation
This commit is contained in:
parent
ea55c63a5c
commit
cc2e42dc00
1 changed files with 5 additions and 4 deletions
|
@ -7,6 +7,7 @@ import mage.cards.CardSetInfo;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
import mage.constants.Duration;
|
import mage.constants.Duration;
|
||||||
import mage.filter.common.FilterCreaturePermanent;
|
import mage.filter.common.FilterCreaturePermanent;
|
||||||
|
import mage.filter.predicate.Predicates;
|
||||||
import mage.filter.predicate.mageobject.EnchantmentOrEnchantedPredicate;
|
import mage.filter.predicate.mageobject.EnchantmentOrEnchantedPredicate;
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
@ -16,11 +17,10 @@ import java.util.UUID;
|
||||||
*/
|
*/
|
||||||
public final class InspireAwe extends CardImpl {
|
public final class InspireAwe extends CardImpl {
|
||||||
|
|
||||||
private static final FilterCreaturePermanent filter
|
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent();
|
||||||
= new FilterCreaturePermanent("enchanted creatures and enchantment creatures");
|
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(EnchantmentOrEnchantedPredicate.instance);
|
filter.add(Predicates.not(EnchantmentOrEnchantedPredicate.instance));
|
||||||
}
|
}
|
||||||
|
|
||||||
public InspireAwe(UUID ownerId, CardSetInfo setInfo) {
|
public InspireAwe(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
@ -29,7 +29,8 @@ public final class InspireAwe extends CardImpl {
|
||||||
// Prevent all combat damage that would be dealt this turn except by enchanted creatures and enchantment creatures. Scry 2.
|
// Prevent all combat damage that would be dealt this turn except by enchanted creatures and enchantment creatures. Scry 2.
|
||||||
this.getSpellAbility().addEffect(new PreventAllDamageByAllPermanentsEffect(
|
this.getSpellAbility().addEffect(new PreventAllDamageByAllPermanentsEffect(
|
||||||
filter, Duration.EndOfTurn, true
|
filter, Duration.EndOfTurn, true
|
||||||
));
|
).setText("Prevent all combat damage that would be dealt this turn " +
|
||||||
|
"except by enchanted creatures and enchantment creatures."));
|
||||||
this.getSpellAbility().addEffect(new ScryEffect(2));
|
this.getSpellAbility().addEffect(new ScryEffect(2));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue