mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 13:32:06 -08:00
Implemented Tenth District Legionnaire
This commit is contained in:
parent
dc3b2f424a
commit
36f5fd365e
3 changed files with 61 additions and 3 deletions
|
|
@ -1,7 +1,6 @@
|
|||
|
||||
package mage.abilities.keyword;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.abilities.Mode;
|
||||
import mage.abilities.SpellAbility;
|
||||
import mage.abilities.TriggeredAbilityImpl;
|
||||
|
|
@ -12,24 +11,33 @@ import mage.game.events.GameEvent;
|
|||
import mage.game.stack.Spell;
|
||||
import mage.target.Target;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* Heroic
|
||||
*
|
||||
*
|
||||
* @author LevelX2
|
||||
*/
|
||||
public class HeroicAbility extends TriggeredAbilityImpl {
|
||||
|
||||
private final boolean isHeroic;
|
||||
|
||||
public HeroicAbility(Effect effect) {
|
||||
this(effect, false);
|
||||
}
|
||||
|
||||
public HeroicAbility(Effect effect, boolean optional) {
|
||||
this(effect, optional, true);
|
||||
}
|
||||
|
||||
public HeroicAbility(Effect effect, boolean optional, boolean isHeroic) {
|
||||
super(Zone.BATTLEFIELD, effect, optional);
|
||||
this.isHeroic = isHeroic;
|
||||
}
|
||||
|
||||
public HeroicAbility(final HeroicAbility ability) {
|
||||
super(ability);
|
||||
this.isHeroic = ability.isHeroic;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -77,6 +85,6 @@ public class HeroicAbility extends TriggeredAbilityImpl {
|
|||
|
||||
@Override
|
||||
public String getRule() {
|
||||
return new StringBuilder("<i>Heroic</i> — Whenever you cast a spell that targets {this}, ").append(super.getRule()).toString();
|
||||
return (isHeroic ? "<i>Heroic</i> — " : "") + "Whenever you cast a spell that targets {this}, " + super.getRule();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue