mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 10:40:06 -08:00
[EOE] Implement Diplomatic Relations
This commit is contained in:
parent
bf7b232861
commit
8dc305aae4
2 changed files with 39 additions and 0 deletions
38
Mage.Sets/src/mage/cards/d/DiplomaticRelations.java
Normal file
38
Mage.Sets/src/mage/cards/d/DiplomaticRelations.java
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
package mage.cards.d;
|
||||
|
||||
import mage.abilities.effects.common.DamageWithPowerFromOneToAnotherTargetEffect;
|
||||
import mage.abilities.effects.common.continuous.BoostTargetEffect;
|
||||
import mage.abilities.effects.common.continuous.GainAbilityTargetEffect;
|
||||
import mage.abilities.keyword.VigilanceAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.target.common.TargetOpponentsCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class DiplomaticRelations extends CardImpl {
|
||||
|
||||
public DiplomaticRelations(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{G}");
|
||||
|
||||
// Target creature gets +1/+0 and gains vigilance until end of turn. It deals damage equal to its power to target creature an opponent controls.
|
||||
this.getSpellAbility().addEffect(new BoostTargetEffect(1, 0));
|
||||
this.getSpellAbility().addEffect(new GainAbilityTargetEffect(VigilanceAbility.getInstance())
|
||||
.setText("and gains vigilance until end of turn"));
|
||||
this.getSpellAbility().addEffect(new DamageWithPowerFromOneToAnotherTargetEffect("it"));
|
||||
this.getSpellAbility().addTarget(new TargetOpponentsCreaturePermanent());
|
||||
}
|
||||
|
||||
private DiplomaticRelations(final DiplomaticRelations card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DiplomaticRelations copy() {
|
||||
return new DiplomaticRelations(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -93,6 +93,7 @@ public final class EdgeOfEternities extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Devastating Onslaught", 132, Rarity.MYTHIC, mage.cards.d.DevastatingOnslaught.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Devastating Onslaught", 308, Rarity.MYTHIC, mage.cards.d.DevastatingOnslaught.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Devastating Onslaught", 361, Rarity.MYTHIC, mage.cards.d.DevastatingOnslaught.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Diplomatic Relations", 177, Rarity.COMMON, mage.cards.d.DiplomaticRelations.class));
|
||||
cards.add(new SetCardInfo("Divert Disaster", 55, Rarity.COMMON, mage.cards.d.DivertDisaster.class));
|
||||
cards.add(new SetCardInfo("Dockworker Drone", 11, Rarity.COMMON, mage.cards.d.DockworkerDrone.class));
|
||||
cards.add(new SetCardInfo("Drill Too Deep", 133, Rarity.COMMON, mage.cards.d.DrillTooDeep.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue