[KHM] fixed missing cantrip on Rune of Sustenance (fixes #7484)

This commit is contained in:
Evan Kranzler 2021-02-02 15:05:53 -05:00
parent fbab9f069e
commit 0d44eea16b

View file

@ -1,11 +1,13 @@
package mage.cards.r;
import mage.abilities.Ability;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.condition.Condition;
import mage.abilities.condition.common.AttachedToMatchesFilterCondition;
import mage.abilities.decorator.ConditionalContinuousEffect;
import mage.abilities.effects.common.AttachEffect;
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
import mage.abilities.effects.common.continuous.GainAbilityAttachedEffect;
import mage.abilities.keyword.EnchantAbility;
import mage.abilities.keyword.LifelinkAbility;
@ -42,6 +44,8 @@ public final class RuneOfSustenance extends CardImpl {
this.addAbility(ability);
// When Rune of Sustenance enters the battlefield, draw a card.
this.addAbility(new EntersBattlefieldTriggeredAbility(new DrawCardSourceControllerEffect(1)));
// As long as enchanted permanent is a creature, it has lifelink.
this.addAbility(new SimpleStaticAbility(new ConditionalContinuousEffect(
new GainAbilityAttachedEffect(