super(ownerId, 336, "Ebony Horse", Rarity.RARE, new CardType[]{CardType.ARTIFACT}, "{3}");
this.expansionSetCode = "4ED";
// {2}, {tap}: Untap target attacking creature you control. Prevent all combat damage that would be dealt to and dealt by that creature this turn.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new UntapTargetEffect(), new GenericManaCost(2));
ability.addCost(new TapSourceCost());
ability.addEffect(new PreventCombatDamageToSourceEffect(Duration.EndOfTurn));
ability.addEffect(new PreventCombatDamageBySourceEffect(Duration.EndOfTurn));
Target target = new TargetCreaturePermanent(filter);
ability.addTarget(target);
this.addAbility(ability);