[BRO] Implement Aeronaut's Wings

This commit is contained in:
Evan Kranzler 2022-11-04 20:05:43 -04:00
parent 12c14e0131
commit 1784411692

View file

@ -0,0 +1,46 @@
package mage.cards.a;
import mage.abilities.Ability;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.effects.common.continuous.BoostEquippedEffect;
import mage.abilities.effects.common.continuous.GainAbilityAttachedEffect;
import mage.abilities.keyword.EquipAbility;
import mage.abilities.keyword.FlyingAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.AttachmentType;
import mage.constants.CardType;
import mage.constants.SubType;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class AeronautsWings extends CardImpl {
public AeronautsWings(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{2}");
this.subtype.add(SubType.EQUIPMENT);
// Equipped creature gets +1/+0 and has flying.
Ability ability = new SimpleStaticAbility(new BoostEquippedEffect(1, 0));
ability.addEffect(new GainAbilityAttachedEffect(
FlyingAbility.getInstance(), AttachmentType.EQUIPMENT
).setText("and has flying"));
this.addAbility(ability);
// Equip {2}
this.addAbility(new EquipAbility(2));
}
private AeronautsWings(final AeronautsWings card) {
super(card);
}
@Override
public AeronautsWings copy() {
return new AeronautsWings(this);
}
}