[TDM] Implement Devoted Duelist

This commit is contained in:
theelk801 2025-03-18 20:11:27 -04:00
parent 249dfcf023
commit a4b2255713
5 changed files with 73 additions and 3 deletions

View file

@ -36,7 +36,6 @@ public class CastSecondSpellTriggeredAbility extends TriggeredAbilityImpl {
}
/**
*
* @param zone What zone the ability can trigger from (see {@link mage.abilities.Ability#getZone})
* @param effect What effect will happen when this ability triggers (see {@link mage.abilities.Ability#getEffects})
* @param targetController Which player(s) to pay attention to
@ -44,7 +43,7 @@ public class CastSecondSpellTriggeredAbility extends TriggeredAbilityImpl {
* @param setTargetPointer Who to set the target pointer of the effects to. Only accepts NONE, PLAYER (the player who cast the spell), and SPELL (the spell which was cast)
*/
public CastSecondSpellTriggeredAbility(Zone zone, Effect effect, TargetController targetController,
boolean optional, SetTargetPointer setTargetPointer) {
boolean optional, SetTargetPointer setTargetPointer) {
super(zone, effect, optional);
if (targetController == TargetController.YOU) {
this.addHint(hint);
@ -54,7 +53,7 @@ public class CastSecondSpellTriggeredAbility extends TriggeredAbilityImpl {
setTriggerPhrase(generateTriggerPhrase());
}
private CastSecondSpellTriggeredAbility(final CastSecondSpellTriggeredAbility ability) {
protected CastSecondSpellTriggeredAbility(final CastSecondSpellTriggeredAbility ability) {
super(ability);
this.targetController = ability.targetController;
this.setTargetPointer = ability.setTargetPointer;

View file

@ -0,0 +1,26 @@
package mage.abilities.common;
import mage.abilities.effects.Effect;
import mage.constants.AbilityWord;
import mage.constants.TargetController;
import mage.constants.Zone;
/**
* @author TheElk801
*/
public class FlurryAbility extends CastSecondSpellTriggeredAbility {
public FlurryAbility(Effect effect) {
super(Zone.BATTLEFIELD, effect, TargetController.YOU, false);
this.setAbilityWord(AbilityWord.FLURRY);
}
private FlurryAbility(final FlurryAbility ability) {
super(ability);
}
@Override
public FlurryAbility copy() {
return new FlurryAbility(this);
}
}

View file

@ -31,6 +31,7 @@ public enum AbilityWord {
FATEFUL_HOUR("Fateful hour"),
FATHOMLESS_DESCENT("Fathomless descent"),
FEROCIOUS("Ferocious"),
FLURRY("Flurry"),
FORMIDABLE("Formidable"),
GRANDEUR("Grandeur"),
HATE("Hate"),