mirror of
https://github.com/magefree/mage.git
synced 2026-01-23 19:59:54 -08:00
Added a test.
This commit is contained in:
parent
7a4d4265a4
commit
4565bce43d
2 changed files with 88 additions and 2 deletions
|
|
@ -33,7 +33,7 @@ import mage.constants.Duration;
|
|||
import mage.constants.Rarity;
|
||||
import mage.constants.Zone;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.TriggeredAbility;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.effects.common.DestroyTargetEffect;
|
||||
|
|
@ -64,7 +64,7 @@ public class HarmonicSliver extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// All Slivers have "When this permanent enters the battlefield, destroy target artifact or enchantment."
|
||||
Ability ability = new EntersBattlefieldTriggeredAbility(new DestroyTargetEffect(), false);
|
||||
TriggeredAbility ability = new EntersBattlefieldTriggeredAbility(new DestroyTargetEffect(), false);
|
||||
TargetPermanent target = new TargetPermanent(new FilterArtifactOrEnchantmentPermanent());
|
||||
ability.addTarget(target);
|
||||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new GainAbilityAllEffect(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue