forked from External/mage
[FIN] Implement Clash of the Eikons
This commit is contained in:
parent
a3d4ec3ca7
commit
b6cb07006c
2 changed files with 80 additions and 0 deletions
78
Mage.Sets/src/mage/cards/a/AettirAndPriwen.java
Normal file
78
Mage.Sets/src/mage/cards/a/AettirAndPriwen.java
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
package mage.cards.a;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.effects.ContinuousEffectImpl;
|
||||
import mage.abilities.keyword.EquipAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.*;
|
||||
import mage.game.Controllable;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.players.Player;
|
||||
|
||||
import java.util.Optional;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class AettirAndPriwen extends CardImpl {
|
||||
|
||||
public AettirAndPriwen(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{6}");
|
||||
|
||||
this.supertype.add(SuperType.LEGENDARY);
|
||||
this.subtype.add(SubType.EQUIPMENT);
|
||||
|
||||
// Equipped creature has base power and toughness X/X, where X is your life total.
|
||||
this.addAbility(new SimpleStaticAbility(new AettirAndPriwenEffect()));
|
||||
|
||||
// Equip {5}
|
||||
this.addAbility(new EquipAbility(5));
|
||||
}
|
||||
|
||||
private AettirAndPriwen(final AettirAndPriwen card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public AettirAndPriwen copy() {
|
||||
return new AettirAndPriwen(this);
|
||||
}
|
||||
}
|
||||
|
||||
class AettirAndPriwenEffect extends ContinuousEffectImpl {
|
||||
|
||||
AettirAndPriwenEffect() {
|
||||
super(Duration.WhileOnBattlefield, Layer.PTChangingEffects_7, SubLayer.SetPT_7b, Outcome.Benefit);
|
||||
staticText = "equipped creature has base power and toughness X/X, where X is your life total";
|
||||
}
|
||||
|
||||
private AettirAndPriwenEffect(final AettirAndPriwenEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public AettirAndPriwenEffect copy() {
|
||||
return new AettirAndPriwenEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Permanent permanent = source.getSourcePermanentIfItStillExists(game);
|
||||
if (permanent == null) {
|
||||
return false;
|
||||
}
|
||||
int life = Optional
|
||||
.ofNullable(source)
|
||||
.map(Controllable::getControllerId)
|
||||
.map(game::getPlayer)
|
||||
.map(Player::getLife)
|
||||
.orElse(0);
|
||||
permanent.getPower().setModifiedBaseValue(life);
|
||||
permanent.getToughness().setModifiedBaseValue(life);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
@ -31,6 +31,8 @@ public final class FinalFantasy extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Aerith Gainsborough", 4, Rarity.RARE, mage.cards.a.AerithGainsborough.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Aerith Gainsborough", 423, Rarity.RARE, mage.cards.a.AerithGainsborough.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Aerith Gainsborough", 519, Rarity.RARE, mage.cards.a.AerithGainsborough.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Aettir and Priwen", 253, Rarity.MYTHIC, mage.cards.a.AettirAndPriwen.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Aettir and Priwen", 350, Rarity.MYTHIC, mage.cards.a.AettirAndPriwen.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Al Bhed Salvagers", 88, Rarity.UNCOMMON, mage.cards.a.AlBhedSalvagers.class));
|
||||
cards.add(new SetCardInfo("Ambrosia Whiteheart", 325, Rarity.UNCOMMON, mage.cards.a.AmbrosiaWhiteheart.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Ambrosia Whiteheart", 424, Rarity.UNCOMMON, mage.cards.a.AmbrosiaWhiteheart.class, NON_FULL_USE_VARIOUS));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue