mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
[BOT] Implemented Blitzwing, Cruel Tormenter / Blitzwing, Adaptive Assailant
This commit is contained in:
parent
adfaa74fad
commit
379c2cc3ac
3 changed files with 168 additions and 0 deletions
83
Mage.Sets/src/mage/cards/b/BlitzwingAdaptiveAssailant.java
Normal file
83
Mage.Sets/src/mage/cards/b/BlitzwingAdaptiveAssailant.java
Normal file
|
@ -0,0 +1,83 @@
|
|||
package mage.cards.b;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.BeginningOfCombatTriggeredAbility;
|
||||
import mage.abilities.common.DealsCombatDamageToAPlayerTriggeredAbility;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.effects.common.TransformSourceEffect;
|
||||
import mage.abilities.effects.common.continuous.GainAbilitySourceEffect;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.abilities.keyword.IndestructibleAbility;
|
||||
import mage.abilities.keyword.LivingMetalAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.*;
|
||||
import mage.game.Game;
|
||||
import mage.util.RandomUtil;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class BlitzwingAdaptiveAssailant extends CardImpl {
|
||||
|
||||
public BlitzwingAdaptiveAssailant(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "");
|
||||
|
||||
this.addSuperType(SuperType.LEGENDARY);
|
||||
this.subtype.add(SubType.VEHICLE);
|
||||
this.power = new MageInt(3);
|
||||
this.toughness = new MageInt(5);
|
||||
this.color.setBlack(true);
|
||||
this.nightCard = true;
|
||||
|
||||
// Living metal
|
||||
this.addAbility(new LivingMetalAbility());
|
||||
|
||||
// At the beginning of combat on your turn, choose flying or indestructible at random. Blitzwing gains that ability until end of turn.
|
||||
this.addAbility(new BeginningOfCombatTriggeredAbility(
|
||||
new BlitzwingCruelTormentorEffect(), TargetController.YOU, false
|
||||
));
|
||||
|
||||
// Whenever Blitzwing deals combat damage to a player, convert it.
|
||||
this.addAbility(new DealsCombatDamageToAPlayerTriggeredAbility(
|
||||
new TransformSourceEffect().setText("convert it"), false
|
||||
));
|
||||
}
|
||||
|
||||
private BlitzwingAdaptiveAssailant(final BlitzwingAdaptiveAssailant card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BlitzwingAdaptiveAssailant copy() {
|
||||
return new BlitzwingAdaptiveAssailant(this);
|
||||
}
|
||||
}
|
||||
|
||||
class BlitzwingAdaptiveAssailantEffect extends OneShotEffect {
|
||||
|
||||
BlitzwingAdaptiveAssailantEffect() {
|
||||
super(Outcome.Benefit);
|
||||
staticText = "choose flying or indestructible at random. {this} gains that ability until end of turn";
|
||||
}
|
||||
|
||||
private BlitzwingAdaptiveAssailantEffect(final BlitzwingAdaptiveAssailantEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BlitzwingAdaptiveAssailantEffect copy() {
|
||||
return new BlitzwingAdaptiveAssailantEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Ability ability = RandomUtil.nextBoolean() ? FlyingAbility.getInstance() : IndestructibleAbility.getInstance();
|
||||
game.informPlayers(ability.getRule() + " has been chosen");
|
||||
game.addEffect(new GainAbilitySourceEffect(ability, Duration.EndOfTurn), source);
|
||||
return true;
|
||||
}
|
||||
}
|
83
Mage.Sets/src/mage/cards/b/BlitzwingCruelTormentor.java
Normal file
83
Mage.Sets/src/mage/cards/b/BlitzwingCruelTormentor.java
Normal file
|
@ -0,0 +1,83 @@
|
|||
package mage.cards.b;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.BeginningOfEndStepTriggeredAbility;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.keyword.MoreThanMeetsTheEyeAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.*;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.players.Player;
|
||||
import mage.target.common.TargetOpponent;
|
||||
import mage.watchers.common.PlayerLostLifeWatcher;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class BlitzwingCruelTormentor extends CardImpl {
|
||||
|
||||
public BlitzwingCruelTormentor(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{5}{B}");
|
||||
|
||||
this.addSuperType(SuperType.LEGENDARY);
|
||||
this.subtype.add(SubType.ROBOT);
|
||||
this.power = new MageInt(6);
|
||||
this.toughness = new MageInt(5);
|
||||
this.secondSideCardClazz = mage.cards.b.BlitzwingAdaptiveAssailant.class;
|
||||
|
||||
// More Than Meets the Eye {3}{B}
|
||||
this.addAbility(new MoreThanMeetsTheEyeAbility(this, "{3}{B}"));
|
||||
|
||||
// At the beginning of your end step, target opponent loses life equal to the life that player lost this turn. If no life is lost this way, convert Blitzwing.
|
||||
Ability ability = new BeginningOfEndStepTriggeredAbility(
|
||||
new BlitzwingCruelTormentorEffect(), TargetController.YOU, false
|
||||
);
|
||||
ability.addTarget(new TargetOpponent());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
private BlitzwingCruelTormentor(final BlitzwingCruelTormentor card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BlitzwingCruelTormentor copy() {
|
||||
return new BlitzwingCruelTormentor(this);
|
||||
}
|
||||
}
|
||||
|
||||
class BlitzwingCruelTormentorEffect extends OneShotEffect {
|
||||
|
||||
BlitzwingCruelTormentorEffect() {
|
||||
super(Outcome.Benefit);
|
||||
staticText = "target opponent loses life equal to the life that player " +
|
||||
"lost this turn. If no life is lost this way, convert {this}";
|
||||
}
|
||||
|
||||
private BlitzwingCruelTormentorEffect(final BlitzwingCruelTormentorEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BlitzwingCruelTormentorEffect copy() {
|
||||
return new BlitzwingCruelTormentorEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Player player = game.getPlayer(getTargetPointer().getFirst(game, source));
|
||||
if (player != null) {
|
||||
int lifeLost = game.getState().getWatcher(PlayerLostLifeWatcher.class).getLifeLost(player.getId());
|
||||
if (lifeLost > 0 && player.loseLife(lifeLost, game, source, false) > 0) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Permanent permanent = source.getSourcePermanentIfItStillExists(game);
|
||||
return permanent != null && permanent.transform(source, game);
|
||||
}
|
||||
}
|
|
@ -19,6 +19,8 @@ public final class Transformers extends ExpansionSet {
|
|||
super("Transformers", "BOT", ExpansionSet.buildDate(2022, 11, 18), SetType.SUPPLEMENTAL);
|
||||
this.hasBasicLands = false;
|
||||
|
||||
cards.add(new SetCardInfo("Blitzwing, Adaptive Assailant", 4, Rarity.MYTHIC, mage.cards.b.BlitzwingAdaptiveAssailant.class));
|
||||
cards.add(new SetCardInfo("Blitzwing, Cruel Tormentor", 4, Rarity.MYTHIC, mage.cards.b.BlitzwingCruelTormentor.class));
|
||||
cards.add(new SetCardInfo("Flamewar, Brash Veteran", 10, Rarity.MYTHIC, mage.cards.f.FlamewarBrashVeteran.class));
|
||||
cards.add(new SetCardInfo("Flamewar, Streetwise Operative", 10, Rarity.MYTHIC, mage.cards.f.FlamewarStreetwiseOperative.class));
|
||||
cards.add(new SetCardInfo("Goldbug, Humanity's Ally", 11, Rarity.MYTHIC, mage.cards.g.GoldbugHumanitysAlly.class));
|
||||
|
|
Loading…
Reference in a new issue