[MKC] Implement Knowledge is Power

This commit is contained in:
PurpleCrowbar 2024-02-21 12:49:11 +00:00
parent fae67114b0
commit 9db09034b3
2 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,38 @@
package mage.cards.k;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.dynamicvalue.common.CardsDrawnThisTurnDynamicValue;
import mage.abilities.effects.common.continuous.BoostAllEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.filter.StaticFilters;
import java.util.UUID;
/**
* @author PurpleCrowbar
*/
public final class KnowledgeIsPower extends CardImpl {
public KnowledgeIsPower(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{3}{W}{U}");
// Creatures you control get +X/+X, where X is the number of cards you've drawn this turn.
this.addAbility(new SimpleStaticAbility(new BoostAllEffect(
CardsDrawnThisTurnDynamicValue.instance, CardsDrawnThisTurnDynamicValue.instance,
Duration.WhileOnBattlefield, StaticFilters.FILTER_CONTROLLED_CREATURE, false
).setText("Creatures you control get +X/+X, where X is the number of cards you've drawn this turn")
).addHint(CardsDrawnThisTurnDynamicValue.getHint()));
}
private KnowledgeIsPower(final KnowledgeIsPower card) {
super(card);
}
@Override
public KnowledgeIsPower copy() {
return new KnowledgeIsPower(this);
}
}

View file

@ -131,6 +131,8 @@ public final class MurdersAtKarlovManorCommander extends ExpansionSet {
cards.add(new SetCardInfo("Kessig Wolf Run", 269, Rarity.RARE, mage.cards.k.KessigWolfRun.class));
cards.add(new SetCardInfo("Kher Keep", 270, Rarity.RARE, mage.cards.k.KherKeep.class));
cards.add(new SetCardInfo("Killer Service", 174, Rarity.RARE, mage.cards.k.KillerService.class));
cards.add(new SetCardInfo("Knowledge is Power", 42, Rarity.RARE, mage.cards.k.KnowledgeIsPower.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Knowledge is Power", 352, Rarity.RARE, mage.cards.k.KnowledgeIsPower.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Koma, Cosmos Serpent", 213, Rarity.MYTHIC, mage.cards.k.KomaCosmosSerpent.class));
cards.add(new SetCardInfo("Krosan Cloudscraper", 175, Rarity.RARE, mage.cards.k.KrosanCloudscraper.class));
cards.add(new SetCardInfo("Krosan Colossus", 176, Rarity.RARE, mage.cards.k.KrosanColossus.class));