mirror of
https://github.com/correl/mage.git
synced 2025-01-13 11:01:58 +00:00
[STX] Implemented Professor's Warning
This commit is contained in:
parent
2184a18c04
commit
fc7b5ef8f9
2 changed files with 44 additions and 0 deletions
43
Mage.Sets/src/mage/cards/p/ProfessorsWarning.java
Normal file
43
Mage.Sets/src/mage/cards/p/ProfessorsWarning.java
Normal file
|
@ -0,0 +1,43 @@
|
|||
package mage.cards.p;
|
||||
|
||||
import mage.abilities.Mode;
|
||||
import mage.abilities.effects.common.continuous.GainAbilityTargetEffect;
|
||||
import mage.abilities.effects.common.counter.AddCountersTargetEffect;
|
||||
import mage.abilities.keyword.IndestructibleAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.counters.CounterType;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class ProfessorsWarning extends CardImpl {
|
||||
|
||||
public ProfessorsWarning(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{B}");
|
||||
|
||||
// Choose one —
|
||||
// • Put a +1/+1 counter on target creature.
|
||||
this.getSpellAbility().addEffect(new AddCountersTargetEffect(CounterType.P1P1.createInstance()));
|
||||
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
|
||||
|
||||
// • Target creature gains indestructible until end of turn.
|
||||
Mode mode = new Mode(new GainAbilityTargetEffect(IndestructibleAbility.getInstance(), Duration.EndOfTurn));
|
||||
mode.addTarget(new TargetCreaturePermanent());
|
||||
this.getSpellAbility().addMode(mode);
|
||||
}
|
||||
|
||||
private ProfessorsWarning(final ProfessorsWarning card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ProfessorsWarning copy() {
|
||||
return new ProfessorsWarning(this);
|
||||
}
|
||||
}
|
|
@ -160,6 +160,7 @@ public final class StrixhavenSchoolOfMages extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Professor Onyx", 83, Rarity.MYTHIC, mage.cards.p.ProfessorOnyx.class));
|
||||
cards.add(new SetCardInfo("Professor of Symbology", 24, Rarity.UNCOMMON, mage.cards.p.ProfessorOfSymbology.class));
|
||||
cards.add(new SetCardInfo("Professor of Zoomancy", 140, Rarity.COMMON, mage.cards.p.ProfessorOfZoomancy.class));
|
||||
cards.add(new SetCardInfo("Professor's Warning", 84, Rarity.COMMON, mage.cards.p.ProfessorsWarning.class));
|
||||
cards.add(new SetCardInfo("Quandrix Apprentice", 216, Rarity.UNCOMMON, mage.cards.q.QuandrixApprentice.class));
|
||||
cards.add(new SetCardInfo("Quandrix Campus", 271, Rarity.COMMON, mage.cards.q.QuandrixCampus.class));
|
||||
cards.add(new SetCardInfo("Quandrix Command", 217, Rarity.RARE, mage.cards.q.QuandrixCommand.class));
|
||||
|
|
Loading…
Reference in a new issue