mirror of
https://github.com/magefree/mage.git
synced 2026-01-24 20:29:19 -08:00
small fix
This commit is contained in:
parent
a646220a0a
commit
9ec4735cf1
2 changed files with 5 additions and 3 deletions
|
|
@ -31,12 +31,14 @@ import java.util.UUID;
|
|||
import mage.MageInt;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
|
||||
import mage.abilities.dynamicvalue.common.StaticValue;
|
||||
import mage.abilities.effects.common.continuous.BoostSourceEffect;
|
||||
import mage.constants.SubType;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.SuperType;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.common.FilterControlledPermanent;
|
||||
import mage.filter.predicate.mageobject.SupertypePredicate;
|
||||
|
|
@ -50,7 +52,7 @@ public class BenalishHonorGuard extends CardImpl {
|
|||
private static final FilterControlledPermanent filter = new FilterControlledPermanent("legendary creature you control");
|
||||
|
||||
static {
|
||||
filter.add(new SupertypePredicate(Supertype.LEGENDARY));
|
||||
filter.add(new SupertypePredicate(SuperType.LEGENDARY));
|
||||
}
|
||||
|
||||
public BenalishHonorGuard(UUID ownerId, CardSetInfo setInfo) {
|
||||
|
|
@ -63,7 +65,7 @@ public class BenalishHonorGuard extends CardImpl {
|
|||
|
||||
// Benalish Honor Guard gets +1/+0 for each legendary creature you control.
|
||||
PermanentsOnBattlefieldCount count = new PermanentsOnBattlefieldCount(filter);
|
||||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostSourceEffect(count, 0, Duration.WhileOnBattlefield)));
|
||||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostSourceEffect(count, new StaticValue(0), Duration.WhileOnBattlefield)));
|
||||
}
|
||||
|
||||
public BenalishHonorGuard(final BenalishHonorGuard card) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue