Implemented Response // Resurgence

This commit is contained in:
Evan Kranzler 2018-09-10 16:01:01 -04:00
parent 15b9a4256f
commit 24a71d2577
2 changed files with 65 additions and 0 deletions

View file

@ -0,0 +1,64 @@
package mage.cards.r;
import java.util.UUID;
import mage.abilities.effects.common.AddCombatAndMainPhaseEffect;
import mage.abilities.effects.common.DamageTargetEffect;
import mage.abilities.effects.common.continuous.GainAbilityControlledEffect;
import mage.abilities.keyword.FirstStrikeAbility;
import mage.abilities.keyword.VigilanceAbility;
import mage.cards.CardSetInfo;
import mage.cards.SplitCard;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.SpellAbilityType;
import mage.filter.StaticFilters;
import mage.target.common.TargetAttackingOrBlockingCreature;
/**
*
* @author TheElk801
*/
public final class ResponseResurgence extends SplitCard {
public ResponseResurgence(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, new CardType[]{CardType.SORCERY}, "{R/W}{R/W}", "{3}{R}{W}", SpellAbilityType.SPLIT);
// Response
// Response deals 5 damage to target attacking or blocking creature.
this.getLeftHalfCard().getSpellAbility().addEffect(
new DamageTargetEffect(5)
);
this.getLeftHalfCard().getSpellAbility().addTarget(
new TargetAttackingOrBlockingCreature()
);
// Resurgence
// Creatures you control gain first strike and vigilance until end of turn. After this main phase, there is an additional combat phase followed by an additional main phase.
this.getLeftHalfCard().getSpellAbility().addEffect(
new GainAbilityControlledEffect(
FirstStrikeAbility.getInstance(),
Duration.EndOfTurn,
StaticFilters.FILTER_CONTROLLED_CREATURE
).setText("Creatures you control gain first strike")
);
this.getLeftHalfCard().getSpellAbility().addEffect(
new GainAbilityControlledEffect(
VigilanceAbility.getInstance(),
Duration.EndOfTurn,
StaticFilters.FILTER_CONTROLLED_CREATURE
).setText("and vigilance until end of turn")
);
this.getLeftHalfCard().getSpellAbility().addEffect(
new AddCombatAndMainPhaseEffect()
);
}
public ResponseResurgence(final ResponseResurgence card) {
super(card);
}
@Override
public ResponseResurgence copy() {
return new ResponseResurgence(this);
}
}

View file

@ -58,6 +58,7 @@ public final class GuildsOfRavnica extends ExpansionSet {
cards.add(new SetCardInfo("Ral's Staticaster", 268, Rarity.UNCOMMON, mage.cards.r.RalsStaticaster.class));
cards.add(new SetCardInfo("Ral, Caller of Storms", 265, Rarity.MYTHIC, mage.cards.r.RalCallerOfStorms.class));
cards.add(new SetCardInfo("Ral, Izzet Viceroy", 195, Rarity.MYTHIC, mage.cards.r.RalIzzetViceroy.class));
cards.add(new SetCardInfo("Response // Resurgence", 229, Rarity.RARE, mage.cards.r.ResponseResurgence.class));
cards.add(new SetCardInfo("Rosemane Centaur", 197, Rarity.COMMON, mage.cards.r.RosemaneCentaur.class));
cards.add(new SetCardInfo("Sacred Foundry", 254, Rarity.RARE, mage.cards.s.SacredFoundry.class));
cards.add(new SetCardInfo("Sinister Sabotage", 54, Rarity.UNCOMMON, mage.cards.s.SinisterSabotage.class));