[KHM] fixed Rune of Might giving flying instead of trample through an equipment

This commit is contained in:
Evan Kranzler 2021-02-20 21:41:31 -05:00
parent 48e9cc3e07
commit b968637e20

View file

@ -11,7 +11,6 @@ import mage.abilities.effects.common.DrawCardSourceControllerEffect;
import mage.abilities.effects.common.continuous.BoostEquippedEffect; import mage.abilities.effects.common.continuous.BoostEquippedEffect;
import mage.abilities.effects.common.continuous.GainAbilityAttachedEffect; import mage.abilities.effects.common.continuous.GainAbilityAttachedEffect;
import mage.abilities.keyword.EnchantAbility; import mage.abilities.keyword.EnchantAbility;
import mage.abilities.keyword.FlyingAbility;
import mage.abilities.keyword.TrampleAbility; import mage.abilities.keyword.TrampleAbility;
import mage.cards.CardImpl; import mage.cards.CardImpl;
import mage.cards.CardSetInfo; import mage.cards.CardSetInfo;
@ -61,7 +60,7 @@ public final class RuneOfMight extends CardImpl {
// As long as enchanted permanent is an Equipment, it has "Equipped creature gets +1/+1 and has trample." // As long as enchanted permanent is an Equipment, it has "Equipped creature gets +1/+1 and has trample."
ability = new SimpleStaticAbility(new BoostEquippedEffect(1, 1)); ability = new SimpleStaticAbility(new BoostEquippedEffect(1, 1));
ability.addEffect(new GainAbilityAttachedEffect( ability.addEffect(new GainAbilityAttachedEffect(
FlyingAbility.getInstance(), AttachmentType.EQUIPMENT TrampleAbility.getInstance(), AttachmentType.EQUIPMENT
).setText("and has trample")); ).setText("and has trample"));
this.addAbility(new SimpleStaticAbility(new ConditionalContinuousEffect( this.addAbility(new SimpleStaticAbility(new ConditionalContinuousEffect(
new GainAbilityAttachedEffect(ability, AttachmentType.AURA), new GainAbilityAttachedEffect(ability, AttachmentType.AURA),