mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
Implemented Ral, Izzet Viceroy
This commit is contained in:
parent
17774aaad5
commit
e030ef3268
3 changed files with 130 additions and 0 deletions
|
|
@ -0,0 +1,32 @@
|
|||
package mage.game.command.emblems;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SpellCastControllerTriggeredAbility;
|
||||
import mage.abilities.effects.common.DamageTargetEffect;
|
||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.game.command.Emblem;
|
||||
import mage.target.common.TargetAnyTarget;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author TheElk801
|
||||
*/
|
||||
public class RalIzzetViceroyEmblem extends Emblem {
|
||||
|
||||
// You get an emblem with "Whenever you cast an instant or sorcery spell, this emblem deals 4 damage to any target and you draw two cards."
|
||||
public RalIzzetViceroyEmblem() {
|
||||
this.setName("Emblem Ral");
|
||||
Ability ability = new SpellCastControllerTriggeredAbility(
|
||||
Zone.COMMAND, new DamageTargetEffect(4, "this emblem"),
|
||||
StaticFilters.FILTER_SPELL_AN_INSTANT_OR_SORCERY, false, false
|
||||
);
|
||||
ability.addEffect(
|
||||
new DrawCardSourceControllerEffect(2)
|
||||
.setText("and you draw two cards")
|
||||
);
|
||||
ability.addTarget(new TargetAnyTarget());
|
||||
getAbilities().add(ability);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue