Fix bugs in Ninth Bridge Patrol and Renegade Freighter

This commit is contained in:
cg5 2016-09-18 12:25:03 +02:00
parent c8937f8ab4
commit bf16b25f51
2 changed files with 8 additions and 1 deletions

View file

@ -38,6 +38,7 @@ import mage.constants.TargetController;
import mage.constants.Zone;
import mage.counters.CounterType;
import mage.filter.common.FilterCreaturePermanent;
import mage.filter.predicate.permanent.AnotherPredicate;
import mage.filter.predicate.permanent.ControllerPredicate;
/**
@ -50,6 +51,7 @@ public class NinthBridgePatrol extends CardImpl {
static {
filter.add(new ControllerPredicate(TargetController.YOU));
filter.add(new AnotherPredicate());
}
public NinthBridgePatrol(UUID ownerId) {
@ -61,7 +63,7 @@ public class NinthBridgePatrol extends CardImpl {
this.toughness = new MageInt(1);
// Whenever another creature you control leaves the battlefield, put a +1/+1 counter on Ninth Bridge Patrol.
this.addAbility(new ZoneChangeAllTriggeredAbility(Zone.BATTLEFIELD, Zone.BATTLEFIELD,
this.addAbility(new ZoneChangeAllTriggeredAbility(Zone.BATTLEFIELD, Zone.BATTLEFIELD, null,
new AddCountersSourceEffect(CounterType.P1P1.createInstance()), filter,
"Whenever another creature you control leaves the battlefield, ", false));
}

View file

@ -34,6 +34,7 @@ import mage.abilities.common.AttacksTriggeredAbility;
import mage.abilities.effects.Effect;
import mage.abilities.effects.common.continuous.BoostSourceEffect;
import mage.abilities.effects.common.continuous.GainAbilitySourceEffect;
import mage.abilities.keyword.CrewAbility;
import mage.abilities.keyword.TrampleAbility;
import mage.cards.CardImpl;
import mage.constants.CardType;
@ -58,8 +59,12 @@ public class RenegadeFreighter extends CardImpl {
effect.setText("it gets +1/+1");
TriggeredAbility ability = new AttacksTriggeredAbility(effect, false);
effect = new GainAbilitySourceEffect(TrampleAbility.getInstance(), Duration.EndOfTurn);
effect.setText("and gains trample until end of turn");
ability.addEffect(effect);
this.addAbility(ability);
// Crew 2
this.addAbility(new CrewAbility(2));
}
public RenegadeFreighter(final RenegadeFreighter card) {