mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
fixed bug #3877
This commit is contained in:
parent
ed9320362d
commit
a025dd1176
4 changed files with 12 additions and 5 deletions
|
@ -89,7 +89,7 @@ public class NimDeathmantle extends CardImpl {
|
|||
class NimDeathmantleTriggeredAbility extends TriggeredAbilityImpl {
|
||||
|
||||
NimDeathmantleTriggeredAbility() {
|
||||
super(Zone.BATTLEFIELD, new NimDeathmantleEffect(), true);
|
||||
super(Zone.BATTLEFIELD, new NimDeathmantleEffect(), false);
|
||||
}
|
||||
|
||||
NimDeathmantleTriggeredAbility(NimDeathmantleTriggeredAbility ability) {
|
||||
|
|
|
@ -40,7 +40,7 @@ import mage.abilities.effects.Effect;
|
|||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.effects.common.DrawDiscardControllerEffect;
|
||||
import mage.abilities.effects.common.ReturnToHandSourceEffect;
|
||||
import mage.abilities.effects.common.ReturnToHandTargetEffect;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
|
@ -50,6 +50,7 @@ import mage.constants.SuperType;
|
|||
import mage.constants.Zone;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.token.TheLocustGodInsectToken;
|
||||
import mage.target.targetpointer.FixedTarget;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -105,8 +106,9 @@ class TheLocustGodEffect extends OneShotEffect {
|
|||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
// Create delayed triggered ability
|
||||
Effect effect = new ReturnToHandSourceEffect(false, true);
|
||||
Effect effect = new ReturnToHandTargetEffect();
|
||||
effect.setText("return {this} to its owner's hand");
|
||||
effect.setTargetPointer(new FixedTarget(source.getSourceId(), source.getSourceObjectZoneChangeCounter()));
|
||||
DelayedTriggeredAbility delayedAbility = new AtTheBeginOfNextEndStepDelayedTriggeredAbility(effect);
|
||||
game.addDelayedTriggeredAbility(delayedAbility, source);
|
||||
return true;
|
||||
|
|
|
@ -41,6 +41,7 @@ import mage.abilities.effects.Effect;
|
|||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.effects.common.PutTokenOntoBattlefieldCopyTargetEffect;
|
||||
import mage.abilities.effects.common.ReturnToHandSourceEffect;
|
||||
import mage.abilities.effects.common.ReturnToHandTargetEffect;
|
||||
import mage.cards.Card;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
|
@ -188,8 +189,9 @@ class TheScarabGodEffect3 extends OneShotEffect {
|
|||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
// Create delayed triggered ability
|
||||
Effect effect = new ReturnToHandSourceEffect(false, true);
|
||||
Effect effect = new ReturnToHandTargetEffect();
|
||||
effect.setText("return {this} to its owner's hand");
|
||||
effect.setTargetPointer(new FixedTarget(source.getSourceId(), source.getSourceObjectZoneChangeCounter()));
|
||||
DelayedTriggeredAbility delayedAbility = new AtTheBeginOfNextEndStepDelayedTriggeredAbility(effect);
|
||||
game.addDelayedTriggeredAbility(delayedAbility, source);
|
||||
return true;
|
||||
|
|
|
@ -40,6 +40,7 @@ import mage.abilities.effects.Effect;
|
|||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||
import mage.abilities.effects.common.ReturnToHandSourceEffect;
|
||||
import mage.abilities.effects.common.ReturnToHandTargetEffect;
|
||||
import mage.abilities.effects.common.counter.AddCountersTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
|
@ -56,6 +57,7 @@ import mage.game.events.GameEvent.EventType;
|
|||
import mage.game.events.ZoneChangeEvent;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
import mage.target.targetpointer.FixedTarget;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -155,8 +157,9 @@ class TheScorpionGodEffect extends OneShotEffect {
|
|||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
// Create delayed triggered ability
|
||||
Effect effect = new ReturnToHandSourceEffect(false, true);
|
||||
Effect effect = new ReturnToHandTargetEffect();
|
||||
effect.setText("return {this} to its owner's hand");
|
||||
effect.setTargetPointer(new FixedTarget(source.getSourceId(), source.getSourceObjectZoneChangeCounter()));
|
||||
DelayedTriggeredAbility delayedAbility = new AtTheBeginOfNextEndStepDelayedTriggeredAbility(effect);
|
||||
game.addDelayedTriggeredAbility(delayedAbility, source);
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue