[PH17] Implement Inzerva, Master of Insights (#11774)

* Remove superfluous code from fateseal effect
This commit is contained in:
PurpleCrowbar 2024-03-08 00:02:52 +00:00 committed by GitHub
parent 86154a7317
commit e5759bbd9e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 182 additions and 8 deletions

View file

@ -0,0 +1,39 @@
package mage.game.command.emblems;
import mage.abilities.common.DrawCardOpponentTriggeredAbility;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.effects.common.DamageTargetEffect;
import mage.abilities.effects.common.continuous.PlayWithHandRevealedEffect;
import mage.constants.TargetController;
import mage.constants.Zone;
import mage.game.command.Emblem;
/**
* @author PurpleCrowbar
*/
public final class InzervaMasterOfInsightsEmblem extends Emblem {
// You get an emblem with "Your opponents play with their hands revealed" and "Whenever an opponent draws a card, this emblem deals 1 damage to them."
public InzervaMasterOfInsightsEmblem() {
super("Emblem Inzerva");
// Your opponents play with their hands revealed
this.getAbilities().add(new SimpleStaticAbility(
Zone.COMMAND,
new PlayWithHandRevealedEffect(TargetController.OPPONENT)
));
// Whenever an opponent draws a card, this emblem deals 1 damage to them
this.getAbilities().add(new DrawCardOpponentTriggeredAbility(
Zone.COMMAND, new DamageTargetEffect(1, true, "them")
.setText("this emblem deals 1 damage to them"), false, true
));
}
private InzervaMasterOfInsightsEmblem(final InzervaMasterOfInsightsEmblem card) {
super(card);
}
@Override
public InzervaMasterOfInsightsEmblem copy() {
return new InzervaMasterOfInsightsEmblem(this);
}
}