This commit is contained in:
Evan Kranzler 2019-01-04 17:48:40 -05:00
commit 90063e4762

View file

@ -1,27 +1,26 @@
package mage.cards.b; package mage.cards.b;
import java.util.UUID;
import mage.MageInt; import mage.MageInt;
import mage.abilities.Ability; import mage.abilities.Ability;
import mage.abilities.DelayedTriggeredAbility; import mage.abilities.DelayedTriggeredAbility;
import mage.abilities.common.DiesTriggeredAbility; import mage.abilities.common.PutIntoGraveFromBattlefieldSourceTriggeredAbility;
import mage.abilities.common.delayed.AtTheBeginOfNextEndStepDelayedTriggeredAbility; import mage.abilities.common.delayed.AtTheBeginOfNextEndStepDelayedTriggeredAbility;
import mage.abilities.effects.Effect; import mage.abilities.effects.Effect;
import mage.abilities.effects.OneShotEffect; import mage.abilities.effects.OneShotEffect;
import mage.abilities.effects.common.LoseLifeSourceControllerEffect; import mage.abilities.effects.common.LoseLifeSourceControllerEffect;
import mage.abilities.effects.common.ReturnToHandTargetEffect; import mage.abilities.effects.common.ReturnToHandTargetEffect;
import mage.constants.SubType;
import mage.cards.CardImpl; import mage.cards.CardImpl;
import mage.cards.CardSetInfo; import mage.cards.CardSetInfo;
import mage.constants.CardType; import mage.constants.CardType;
import mage.constants.SubType;
import mage.game.Game; import mage.game.Game;
import mage.target.targetpointer.FixedTarget; import mage.target.targetpointer.FixedTarget;
import java.util.UUID;
import static mage.constants.Outcome.Benefit; import static mage.constants.Outcome.Benefit;
/** /**
*
* @author mpouedras * @author mpouedras
*/ */
public final class BroodOfCockroaches extends CardImpl { public final class BroodOfCockroaches extends CardImpl {
@ -37,7 +36,7 @@ public final class BroodOfCockroaches extends CardImpl {
// at the beginning of the next end step, // at the beginning of the next end step,
// you lose 1 life // you lose 1 life
// and return Brood of Cockroaches to your hand. // and return Brood of Cockroaches to your hand.
this.addAbility(new DiesTriggeredAbility(new BroodOfCockroachesEffect())); this.addAbility(new PutIntoGraveFromBattlefieldSourceTriggeredAbility(new BroodOfCockroachesEffect(), false, true));
} }
public BroodOfCockroaches(final BroodOfCockroaches card) { public BroodOfCockroaches(final BroodOfCockroaches card) {