[BRO] Implemented Hajar, Loyal Bodyguard

This commit is contained in:
Evan Kranzler 2022-10-31 09:22:38 -04:00
parent 28e3c68570
commit 8b87903b53
3 changed files with 66 additions and 6 deletions

View file

@ -0,0 +1,58 @@
package mage.cards.h;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.common.SacrificeSourceCost;
import mage.abilities.effects.common.continuous.BoostControlledEffect;
import mage.abilities.effects.common.continuous.GainAbilityControlledEffect;
import mage.abilities.keyword.IndestructibleAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.SubType;
import mage.constants.SuperType;
import mage.filter.common.FilterCreaturePermanent;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class HajarLoyalBodyguard extends CardImpl {
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("legendary creatures");
static {
filter.add(SuperType.LEGENDARY.getPredicate());
}
public HajarLoyalBodyguard(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{R}{G}");
this.addSuperType(SuperType.LEGENDARY);
this.subtype.add(SubType.HUMAN);
this.subtype.add(SubType.SOLDIER);
this.power = new MageInt(3);
this.toughness = new MageInt(3);
// Sacrifice Hajar, Loyal Bodyguard: Legendary creatures you control get +1/+0 and gain indestructible until end of turn.
Ability ability = new SimpleActivatedAbility(new BoostControlledEffect(
1, 0, Duration.EndOfTurn, filter
).setText("legendary creatures you control get +1/+0"), new SacrificeSourceCost());
ability.addEffect(new GainAbilityControlledEffect(
IndestructibleAbility.getInstance(), Duration.EndOfTurn, filter
).setText("and gain indestructible until end of turn"));
this.addAbility(ability);
}
private HajarLoyalBodyguard(final HajarLoyalBodyguard card) {
super(card);
}
@Override
public HajarLoyalBodyguard copy() {
return new HajarLoyalBodyguard(this);
}
}

View file

@ -41,6 +41,7 @@ public final class TheBrothersWar extends ExpansionSet {
cards.add(new SetCardInfo("Gaea's Courser", 181, Rarity.UNCOMMON, mage.cards.g.GaeasCourser.class));
cards.add(new SetCardInfo("Giant Growth", 183, Rarity.COMMON, mage.cards.g.GiantGrowth.class));
cards.add(new SetCardInfo("Go for the Throat", 102, Rarity.UNCOMMON, mage.cards.g.GoForTheThroat.class));
cards.add(new SetCardInfo("Hajar, Loyal Bodyguard", 211, Rarity.RARE, mage.cards.h.HajarLoyalBodyguard.class));
cards.add(new SetCardInfo("Hall of Tagsin", 263, Rarity.RARE, mage.cards.h.HallOfTagsin.class));
cards.add(new SetCardInfo("Harbin, Vanguard Aviator", 212, Rarity.RARE, mage.cards.h.HarbinVanguardAviator.class));
cards.add(new SetCardInfo("Hurkyl's Final Meditation", 52, Rarity.RARE, mage.cards.h.HurkylsFinalMeditation.class));

View file

@ -46215,9 +46215,9 @@ Nogi, Draco-Zealot|Game Night 2022|4|M|{1}{R}{R}|Legendary Creature - Kobold Sha
Imaryll, Elfhame Elite|Game Night 2022|6|M|{2}{G}{G}|Legendary Creature - Elf Warrior|3|3|Whenever Imaryll, Elfhame Elite attacks, it gets +X/+X until end of turn, where X is the number of other Elves you control.$You may have Imaryll assign its combat damage as though it weren't blocked.|
In the Trenches|The Brothers' War|8|M|{1}{W}{W}|Enchantment|||Creatures you control get +1/+1.${5}{W}: Exile target nonland permanent you don't control until In the Trenches leaves the battlefield. Activate only as a sorcery and only once.|
Recruitment Officer|The Brothers' War|23|U|{W}|Creature - Human Soldier|2|1|{3}{W}: Look at the top four cards of your library. You may reveal a creature card with mana value 3 or less from among them and put it into your hand. Put the rest on the bottom of your library in a random order.|
Soul Partition|The Brothers' War|26|R|{1}{W}|Instant|||Exile target nonland permanent. For as long as that card remains exiled, it's owner may play it. A spell cast by an opponent this way costs {2} more to cast.|
Soul Partition|The Brothers' War|26|R|{1}{W}|Instant|||Exile target nonland permanent. For as long as that card remains exiled, its owner may play it. A spell cast by an opponent this way costs {2} more to cast.|
Tocasia's Welcome|The Brothers' War|30|R|{2}{W}|Enchantment|||Whenever one or more creatures with mana value 3 or less enter the battlefield under your control, draw a card. This ability triggers only once each turn.|
Yotian Medic|The Brothers' War|33|C|{2}{W}|Creature - Human Soldier Creature|1|4|Lifelink|
Yotian Medic|The Brothers' War|33|C|{2}{W}|Creature - Human Cleric Soldier|1|4|Lifelink|
Scrapwork Cohort|The Brothers' War|37|C|{4}|Artifact Creature - Soldier|3|1|When Scrapwork Cohort enters the battlefield, create a 1/1 colorless Soldier artifact creature token.$Unearth {2}{W}|
Tocasia's Onulet|The Brothers' War|39|C|{5}|Artifact Creature - Construct|4|4|When Tocasia's Onulet leaves the battlefield, you gain 2 life.$Unearth {3}{W}|
Urza's Sylex|The Brothers' War|40|M|{3}|Legendary Artifact|||{2}{W}{W}, {T}, Exile Urza's Sylex: Each player chooses six lands they control. Destroy all other permanents. Activate only as a sorcery.$When Urza's Sylex is put into exile from the battlefield, you may pay {2}. If you do, search your library for a planeswalker card, reveal it, put it into your hand, then shuffle.|
@ -46226,7 +46226,7 @@ Hurkyl, Master Wizard|The Brothers' War|51|R|{1}{U}{U}|Legendary Creature - Huma
Hurkyl's Final Meditation|The Brothers' War|52|R|{4}{U}{U}{U}|Instant|||As long as its not your turn, this spell costs {3} more to cast.$Return all nonland permanents to their owner's hands. End the turn.|
Splitting the Powerstone|The Brothers' War|63|U|{2}{U}|Sorcery|||As an additional cost to cast this spell, sacrifice an artifact.$Create two tapped Powerstone tokens. If the sacrificed artifact was legendary, draw a card.|
Stern Lesson|The Brothers' War|64|C|{2}{U}|Instant|||Draw two cards, then discard a card. Create a tapped Powerstone token.|
Teferi, Temporal Pilgrim|The Brothers' War|66|M|{3}{U}{U}|Legendary Planeswalker - Teferi|4|Whenever you draw a card, put a loyalty counter on Teferi, Temporal Pilgrim.$0: Draw a card.$-2: Create a 2/2 blue Spirit creature token with vigilance and "Whenever you draw a card, put a +1/+1 counter on this creature."$-12: Target opponent chooses a permanent they control and returns it to its owner's had. Then they shuffle each nonland permanent they control into its owner's library.|
Teferi, Temporal Pilgrim|The Brothers' War|66|M|{3}{U}{U}|Legendary Planeswalker - Teferi|4|Whenever you draw a card, put a loyalty counter on Teferi, Temporal Pilgrim.$0: Draw a card.$-2: Create a 2/2 blue Spirit creature token with vigilance and "Whenever you draw a card, put a +1/+1 counter on this creature."$-12: Target opponent chooses a permanent they control and returns it to its owner's hand. Then they shuffle each nonland permanent they control into its owner's library.|
Third Path Savant|The Brothers' War|67|C|{2}{U}|Creature - Human Wizard|2|3|{7}: Draw two cards.|
Urza, Powerstone Prodigy|The Brothers' War|69|U|{2}{U}|Legendary Creature - Human Artificer|1|3|Vigilance${1}, {T}: Draw a card, then discard a card.$Whenever you discard one or more artifact cards, create a tapped Powerstone token. This ability triggers only once each turn.|
Urza's Command|The Brothers' War|70|R|{2}{U}{U}|Instant|||Choose two --$* Creatures you don't control get -2/-0 until end of turn.$* Create a tapped Powerstone token.$* Create a tapped 0/0 colorless Construct artifact creature token with "This creature gets +1/+1 for each artifact you control."$* Scry 1, then draw a card.|
@ -46247,7 +46247,7 @@ Feldon, Ronom Excavator|The Brothers' War|135|R|{1}{R}|Legendary Creature - Huma
Mishra, Excavation Prodigy|The Brothers' War|140|U|{2}{R}|Legendary Creature - Human Artificer|2|1|Haste${1}, {T}, Discard a card: Draw a card.$Whenever you discard one or more artifact cards, add {R}{R}. This ability triggers only once each turn.|
Mishra's Command|The Brothers' War|141|R|{X}{R}|Sorcery|||Choose two --$* Choose target player. They may discard up to X cards. Then they draw a card for each card discarded this way.$* This spell deals X damage to target creature.$* This spell deals X damage to target planeswalker.$* Target creature gets +X/+0 and gains haste until end of turn.|
Monastery Swiftspear|The Brothers' War|144|U|{R}|Creature - Human Monk|1|2|Haste$Prowess|
Mishra's Juggernaut|The Brothers' War|161|C|{5}|Artifact Creature - Juggernaut|5|3|Trample$Mishra's Juggernaut attacks each turn if able.$Unearth {5}{R}|
Mishra's Juggernaut|The Brothers' War|161|C|{5}|Artifact Creature - Juggernaut|5|3|Trample$Mishra's Juggernaut attacks each combat if able.$Unearth {5}{R}|
Mishra, Lost to Phyrexia|The Brothers' War|163b|M||Legendary Artifact Creature - Phyrexian Artificer|9|9|Whenever Mishra, Lost to Phyrexia enters the battlefield or attacks, choose three --$* Target opponent discards two cards.$* Mishra deals 3 damage to any target.$* Destroy target artifact or planeswalker.$* Creatures you control gain menace and trample until end of turn.$* Creatures you don't control get -1/-1 until end of turn.$* Create two tapped Powerstone tokens.|
Phyrexian Dragon Engine|The Brothers' War|163a|R|{3}|Artifact Creature - Phyrexian Dragon|2|2|Double strike$When Phyrexian Dragon Engine enters the battlefield from your graveyard, you may discard your hand. If you do, draw three cards.$Unearth {3}{R}{R}$(Melds with Mishra, Claimed by Gix.)|
Skitterbeam Battalion|The Brothers' War|165|M|{9}|Artifact Creature - Construct|4|4|Prototype {3}{R}{R} -- 2/2$Trample, haste$When Skitterbeam Battalion enters the battlefield, if you cast it, create two tokens that are copies of it.|
@ -46257,6 +46257,7 @@ Gaea's Courser|The Brothers' War|181|U|{4}{G}|Creature - Centaur Soldier|4|5|Whe
Giant Growth|The Brothers' War|183|C|{G}|Instant|||Target creature gets +3/+3 until end of turn.|
Titania, Voice of Gaea|The Brothers' War|193|M|{1}{G}{G}|Legendary Creature - Elemental|3|4|Reach$Whenever one or more land cards are put into your graveyard from anywhere, you gain 2 life.$At the beginning of your upkeep, if there are four or more land cards in your graveyard and you both own and control Titania, Voice of Gaea and a land named Argoth, Sanctum of Nature, exile them, then meld them into Titania, Gaea Incarnate.|
Rust Goliath|The Brothers' War|204|C|{10}|Artifact Creature - Construct|10|10|Prototype {3}{G}{G} -- 3/5$Reach, trample|
Hajar, Loyal Bodyguard|The Brothers' War|211|R|{R}{G}|Legendary Creature - Human Soldier|3|3|Sacrifice Hajar, Loyal Bodyguard: Legendary creatures you control get +1/+0 and gain indestructible until end of turn.|
Harbin, Vanguard Aviator|The Brothers' War|212|R|{W}{U}|Legendary Creature - Human Soldier|3|2|Flying$Whenever you attack with five or more Soldiers, creatures you control get +1/+1 and gain flying until end of turn.|
Mishra, Claimed by Gix|The Brothers' War|216|M|{2}{B}{R}|Legendary Creature - Phyrexian Human Artificer|3|5|Whenever you attack, each opponent loses X life and you gain X life, where X is the number of attacking creatures. If Mishra, Claimed by Gix and a creature named Phyrexian Dragon Engine are attacking, and you both own and control them, exile them, then meld them into Mishra, Lost to Phyrexia. It enters the battlefield tapped and attacking.|
Mishra, Tamer of Mak Fawa|The Brothers' War|217|R|{3}{B}{R}|Legendary Creature - Human Artificer|4|4|Permanents you control have "Ward--Sacrifice a permanent."$Each artifact card in your graveyard has unearth {1}{B}{R}|
@ -46267,14 +46268,14 @@ Urza, Prince of Kroog|The Brothers' War|226|R|{2}{W}{U}|Legendary Creature - Hum
Yotian Dissident|The Brothers' War|227|U|{G}{W}|Creature - Human Artificer|1|1|Whenever an artifact enters the battlefield under your control, put +1/+1 counter on target creature you control.|
The Mightstone and Weakstone|The Brothers' War|238a|R|{5}|Legendary Artifact - Powerstone|||When The Mightstone and Weakstone enters the battlefield, choose one --$* Draw two cards.$* Target creature gets -5/-5 until end of turn.${T}: Add {C}{C}. This mana can't be spent to cast nonartifact spells.$(Melds with Urza, Lord Protector.)|
Urza, Planeswalker|The Brothers' War|238b|M||Legendary Planeswalker - Urza|7|Once during each of your turns, you may activate an additional loyalty ability of Urza, Planeswalker.$+2: Artifact, instant, and sorcery spells you cast this turn cost {2} less to cast. You gain 2 life.$+1: Draw two cards, then discard a card.$0: Create two 1/1 colorless Soldier artifact creature tokens.$-3: Exile target nonland permanent.$-10: Artifacts and planeswalkers you control gain indestructible until end of turn. Destroy all nonland permanents.|
The Stone Brain|The Brothers' War|247|R|{2}|Legendary Artifact|||{2}, {T}, Exile The Stone Brain: Choose a card name. Search target player's graveyard, hand, and library for up to four cards with that name and exile them. That player shuffles, then draws a card for each card exiled from their hand this way. Activate only as a sorcery.|
The Stone Brain|The Brothers' War|247|R|{2}|Legendary Artifact|||{2}, {T}, Exile The Stone Brain: Choose a card name. Search target opponent's graveyard, hand, and library for up to four cards with that name and exile them. That player shuffles, then draws a card for each card exiled from their hand this way. Activate only as a sorcery.|
Thran Spider|The Brothers' War|254|R|{3}|Artifact Creature - Spider|2|4|Reach$When Thran Spider enters the battlefield, you and target opponent each create a tapped Powerstone token.${7}: Look at the top four cards of your library. You may reveal an artifact card from among them and put it into your hand. Put the rest on the bottom of your library in a random order.|
Argoth, Sanctum of Nature|The Brothers' War|256a|R||Land|||Argoth, Sanctum of Nature enters the battlefield tapped unless you control a legendary green creature.${T}: Add {G}.${2}{G}{G}, {T}: Create a 2/2 green Bear creature token, then mill three cards. Activate only as a sorcery.$(Melds with Titania, Voice of Gaea.)|
Titania, Gaea Incarnate|The Brothers' War|256b|M||Legendary Creature - Elemental Avatar|*|*|Vigilance, reach, trample, haste$Titania, Gaea Incarnate's power and toughness are each equal to the number of lands you control.$When Titania, Gaea Incarnate enters the battlefield, return all land cards from your graveyard to the battlefield tapped.${3}{G}: Put four +1/+1 counters on target land you control. It becomes a 0/0 Elemental creature with haste. It's still a land.|
Battlefield Forge|The Brothers' War|257|R||Land|||{T}: Add {C}.${T}: Add {R} or {W}. Battlefield Forge deals 1 damage to you.|
Blast Zone|The Brothers' War|258|R||Land|||Blast Zone enters the battlefield with a charge counter on it.${T}: Add {C}.${X}{X}, {T}: Put X charge counters on Blast Zone.${3}, {T}, Sacrifice Blast Zone: Destroy each nonland permanent with mana value equal to the number of charge counters on Blast Zone.|
Brushland|The Brothers' War|259|R||Land|||{T}: Add {C}.${T}: Add {G} or {W}. Brushland deals 1 damage to you.|
Hall of Tagsin|The Brothers' War|263|R||Land|||{T}: Add {C}.${1}, {T}: Add one mana of any color.${4}, {T}: Create a tapped Ppowerstone token.|
Hall of Tagsin|The Brothers' War|263|R||Land|||{T}: Add {C}.${1}, {T}: Add one mana of any color.${4}, {T}: Create a tapped Powerstone token.|
Llanowar Wastes|The Brothers' War|264|R||Land|||{T}: Add {C}.${T}: Add {B} or {G}. Llanowar Wastes deals 1 damage to you.|
Mishra's Foundry|The Brothers' War|265|R||Land|||{T}: Add {C}.${2}: Mishra's Foundry becomes a 2/2 Assembly-Worker artifact creature until end of turn. It's still a land.${1}, {T}: Target attacking Assembly-Worker gets +2/+2 until end of turn.|
Underground River|The Brothers' War|267|R||Land|||{T}: Add {C}.${T}: Add {U} or {B}. Underground River deals 1 damage to you.|