Implemented Ral, Izzet Viceroy

This commit is contained in:
Evan Kranzler 2018-09-03 10:23:15 -04:00
parent 17774aaad5
commit e030ef3268
3 changed files with 130 additions and 0 deletions

View file

@ -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);
}
}