Fix Donal, Herald of Wings (#10389)

This commit is contained in:
xenohedron 2023-06-04 22:03:38 +03:00 committed by GitHub
parent 27e3010139
commit a0185ba50a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,16 +2,15 @@ package mage.cards.d;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.common.SpellCastControllerTriggeredAbility;
import mage.abilities.effects.Effect;
import mage.abilities.effects.OneShotEffect;
import mage.abilities.effects.common.continuous.SetBasePowerToughnessSourceEffect;
import mage.abilities.keyword.FlyingAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Outcome;
import mage.constants.SubType;
import mage.constants.SuperType;
import mage.constants.*;
import mage.filter.FilterSpell;
import mage.filter.predicate.Predicates;
import mage.filter.predicate.mageobject.AbilityPredicate;
@ -105,6 +104,9 @@ enum DonalHeraldOfWingsApplier implements StackObjectCopyApplier {
copiedSpell.addSubType(SubType.SPIRIT);
copiedSpell.getPower().setModifiedBaseValue(1);
copiedSpell.getToughness().setModifiedBaseValue(1);
Ability ability = new SimpleStaticAbility(new SetBasePowerToughnessSourceEffect(1,1, Duration.Custom, SubLayer.SetPT_7b));
ability.setRuleVisible(false);
copiedSpell.getAbilities().add(ability);
}
@Override