[AFR] Fix Spare Dagger not dealing 1 damage if sacrificed (#8273)

This commit is contained in:
Raphael "who?!" Kehldorfer 2021-09-15 03:48:10 +02:00 committed by GitHub
parent a5038f2409
commit f901026af5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,6 +16,7 @@ import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.game.Game;
import mage.target.common.TargetAnyTarget;
import java.util.UUID;
@ -75,6 +76,8 @@ class SpareDaggerEffect extends GainAbilityWithAttachmentEffect {
new DamageTargetEffect(1), false,
"This creature deals 1 damage to any target"
);
ability.addTarget(new TargetAnyTarget());
return new AttacksTriggeredAbility(new DoWhenCostPaid(
ability, useAttachedCost.copy().setMageObjectReference(source, game),
"Sacrifice " + sourceName + "?"