forked from External/mage
[DOM] Implement Legendary Sorceries
Add: Target Any Target for damage spells Add: Drudge Sentinel Fix: Genesis Wave Filter
This commit is contained in:
parent
ecbe7e68a6
commit
702756b4e7
13 changed files with 935 additions and 12 deletions
|
|
@ -0,0 +1,26 @@
|
|||
package mage.abilities.common;
|
||||
|
||||
import mage.abilities.condition.common.LegendaryCondition;
|
||||
import mage.constants.Zone;
|
||||
|
||||
/**
|
||||
* @author JRHerlehy
|
||||
* Created on 4/8/18.
|
||||
*/
|
||||
public class LegendarySpellAbility extends SimpleStaticAbility {
|
||||
|
||||
public LegendarySpellAbility() {
|
||||
super(Zone.ALL, new CastOnlyIfConditionIsTrueEffect(LegendaryCondition.instance));
|
||||
this.setRuleAtTheTop(true);
|
||||
this.getEffects().get(0).setText("<i>(You may cast a legendary sorcery only if you control a legendary creature or planeswalker.)</i>");
|
||||
}
|
||||
|
||||
private LegendarySpellAbility(final LegendarySpellAbility ability) {
|
||||
super(ability);
|
||||
}
|
||||
|
||||
@Override
|
||||
public LegendarySpellAbility copy() {
|
||||
return new LegendarySpellAbility(this);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue