* Glory Bearers - fixed that it boost itself too;

This commit is contained in:
Oleg Agafonov 2020-01-28 01:46:40 +04:00
parent 684a4b3cc9
commit cc1840b109
2 changed files with 21 additions and 4 deletions

View file

@ -7,6 +7,8 @@ import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.filter.common.FilterControlledCreaturePermanent;
import mage.filter.predicate.permanent.AnotherPredicate;
import java.util.UUID;
@ -15,6 +17,12 @@ import java.util.UUID;
*/
public final class GloryBearers extends CardImpl {
private static final FilterControlledCreaturePermanent filter = new FilterControlledCreaturePermanent("another creature you control");
static {
filter.add(AnotherPredicate.instance);
}
public GloryBearers(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT, CardType.CREATURE}, "{3}{W}");
@ -27,7 +35,7 @@ public final class GloryBearers extends CardImpl {
this.addAbility(new AttacksCreatureYouControlTriggeredAbility(
new BoostTargetEffect(0, 1)
.setText("it gets +0/+1 until end of turn"),
false, true
false, filter, true
));
}