[LTR] Fix Galadriel, Gift-Giver (#10476)

should trigger on attack
This commit is contained in:
Artemis Kearney 2023-06-16 19:54:01 -05:00 committed by GitHub
parent 8322d75fc0
commit 7c70add7fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,6 +3,7 @@ package mage.cards.g;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.Mode;
import mage.abilities.common.EntersBattlefieldOrAttacksSourceTriggeredAbility;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.abilities.effects.common.counter.AddCountersTargetEffect;
@ -35,7 +36,7 @@ public final class GaladrielGiftGiver extends CardImpl {
// Whenever Galadriel, Gift-Giver enters the battlefield or attacks, choose one --
// * Put a +1/+1 counter on another target creature.
Ability ability = new EntersBattlefieldTriggeredAbility(
Ability ability = new EntersBattlefieldOrAttacksSourceTriggeredAbility(
new AddCountersTargetEffect(CounterType.P1P1.createInstance())
);
ability.addTarget(new TargetPermanent(StaticFilters.FILTER_ANOTHER_TARGET_CREATURE));