mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00: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.Duration;
|
||||
import mage.filter.common.FilterCreaturePermanent;
|
||||
import mage.filter.predicate.Predicates;
|
||||
import mage.filter.predicate.mageobject.EnchantmentOrEnchantedPredicate;
|
||||
|
||||
import java.util.UUID;
|
||||
|
@ -16,11 +17,10 @@ import java.util.UUID;
|
|||
*/
|
||||
public final class InspireAwe extends CardImpl {
|
||||
|
||||
private static final FilterCreaturePermanent filter
|
||||
= new FilterCreaturePermanent("enchanted creatures and enchantment creatures");
|
||||
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent();
|
||||
|
||||
static {
|
||||
filter.add(EnchantmentOrEnchantedPredicate.instance);
|
||||
filter.add(Predicates.not(EnchantmentOrEnchantedPredicate.instance));
|
||||
}
|
||||
|
||||
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.
|
||||
this.getSpellAbility().addEffect(new PreventAllDamageByAllPermanentsEffect(
|
||||
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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue