[BLB] Implement Longstalk Brawl

This commit is contained in:
theelk801 2024-07-19 10:39:20 -04:00
parent 798befc04d
commit 58e4576f3f
2 changed files with 50 additions and 0 deletions

View file

@ -0,0 +1,49 @@
package mage.cards.l;
import mage.abilities.condition.common.GiftWasPromisedCondition;
import mage.abilities.decorator.ConditionalOneShotEffect;
import mage.abilities.effects.common.FightTargetsEffect;
import mage.abilities.effects.common.counter.AddCountersTargetEffect;
import mage.abilities.keyword.GiftAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.GiftType;
import mage.counters.CounterType;
import mage.filter.StaticFilters;
import mage.target.TargetPermanent;
import mage.target.common.TargetControlledCreaturePermanent;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class LongstalkBrawl extends CardImpl {
public LongstalkBrawl(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{G}");
// Gift a tapped Fish
this.addAbility(new GiftAbility(this, GiftType.TAPPED_FISH));
// Choose target creature you control and target creature you don't control. Put a +1/+1 counter on the creature you control if the gift was promised. Then those creatures fight each other.
this.getSpellAbility().addEffect(new ConditionalOneShotEffect(
new AddCountersTargetEffect(CounterType.P1P1.createInstance()),
GiftWasPromisedCondition.TRUE, "choose target creature you control and target creature " +
"you don't control. Put a +1/+1 counter on the creature you control if the gift was promised"
));
this.getSpellAbility().addEffect(new FightTargetsEffect().setText("then those creatures fight each other"));
this.getSpellAbility().addTarget(new TargetControlledCreaturePermanent());
this.getSpellAbility().addTarget(new TargetPermanent(StaticFilters.FILTER_CREATURE_YOU_DONT_CONTROL));
}
private LongstalkBrawl(final LongstalkBrawl card) {
super(card);
}
@Override
public LongstalkBrawl copy() {
return new LongstalkBrawl(this);
}
}

View file

@ -117,6 +117,7 @@ public final class Bloomburrow extends ExpansionSet {
cards.add(new SetCardInfo("Lightshell Duo", 56, Rarity.COMMON, mage.cards.l.LightshellDuo.class));
cards.add(new SetCardInfo("Lilypad Village", 255, Rarity.UNCOMMON, mage.cards.l.LilypadVillage.class));
cards.add(new SetCardInfo("Long River's Pull", 58, Rarity.UNCOMMON, mage.cards.l.LongRiversPull.class));
cards.add(new SetCardInfo("Longstalk Brawl", 182, Rarity.COMMON, mage.cards.l.LongstalkBrawl.class));
cards.add(new SetCardInfo("Lumra, Bellow of the Woods", 183, Rarity.MYTHIC, mage.cards.l.LumraBellowOfTheWoods.class));
cards.add(new SetCardInfo("Lunar Convocation", 223, Rarity.RARE, mage.cards.l.LunarConvocation.class));
cards.add(new SetCardInfo("Lupinflower Village", 256, Rarity.UNCOMMON, mage.cards.l.LupinflowerVillage.class));