[MH3] Implement Kudo, King Among Bears

This commit is contained in:
theelk801 2024-05-01 10:52:36 -04:00
parent 81cfdcda01
commit 5e389c7335
2 changed files with 55 additions and 0 deletions

View file

@ -0,0 +1,54 @@
package mage.cards.k;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.effects.common.continuous.AddCardSubtypeAllEffect;
import mage.abilities.effects.common.continuous.SetBasePowerToughnessAllEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.*;
import mage.filter.FilterPermanent;
import mage.filter.common.FilterCreaturePermanent;
import mage.filter.predicate.mageobject.AnotherPredicate;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class KudoKingAmongBears extends CardImpl {
private static final FilterPermanent filter = new FilterCreaturePermanent("other creatures");
static {
filter.add(AnotherPredicate.instance);
}
public KudoKingAmongBears(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{G}{W}");
this.supertype.add(SuperType.LEGENDARY);
this.subtype.add(SubType.BEAR);
this.power = new MageInt(2);
this.toughness = new MageInt(2);
// Other creatures have base power and toughness 2/2 and are Bears in addition to their other types.
Ability ability = new SimpleStaticAbility(new SetBasePowerToughnessAllEffect(
2, 2, Duration.WhileOnBattlefield, filter
));
ability.addEffect(new AddCardSubtypeAllEffect(
filter, SubType.BEAR, DependencyType.AddingCreatureType
).setText("and are Bears in addition to their other types"));
this.addAbility(ability);
}
private KudoKingAmongBears(final KudoKingAmongBears card) {
super(card);
}
@Override
public KudoKingAmongBears copy() {
return new KudoKingAmongBears(this);
}
}

View file

@ -32,6 +32,7 @@ public final class ModernHorizons3 extends ExpansionSet {
cards.add(new SetCardInfo("Island", 305, Rarity.LAND, mage.cards.basiclands.Island.class, FULL_ART_BFZ_VARIOUS));
cards.add(new SetCardInfo("It That Heralds the End", 9, Rarity.UNCOMMON, mage.cards.i.ItThatHeraldsTheEnd.class));
cards.add(new SetCardInfo("Kappa Cannoneer", 270, Rarity.RARE, mage.cards.k.KappaCannoneer.class));
cards.add(new SetCardInfo("Kudo, King Among Bears", 192, Rarity.RARE, mage.cards.k.KudoKingAmongBears.class));
cards.add(new SetCardInfo("Laelia, the Blade Reforged", 281, Rarity.RARE, mage.cards.l.LaeliaTheBladeReforged.class));
cards.add(new SetCardInfo("Meltdown", 282, Rarity.UNCOMMON, mage.cards.m.Meltdown.class));
cards.add(new SetCardInfo("Mountain", 307, Rarity.LAND, mage.cards.basiclands.Mountain.class, FULL_ART_BFZ_VARIOUS));