mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 13:19:18 -08:00
[TDM] Implement Devoted Duelist
This commit is contained in:
parent
249dfcf023
commit
a4b2255713
5 changed files with 73 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
26
Mage/src/main/java/mage/abilities/common/FlurryAbility.java
Normal file
26
Mage/src/main/java/mage/abilities/common/FlurryAbility.java
Normal 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);
|
||||
}
|
||||
}
|
||||
|
|
@ -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"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue