mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
Fixed the Scarab God's return to hand trigger timing.
This commit is contained in:
parent
8e666c9403
commit
9c3910a2ff
1 changed files with 3 additions and 3 deletions
|
@ -35,7 +35,7 @@ import mage.abilities.DelayedTriggeredAbility;
|
|||
import mage.abilities.common.BeginningOfUpkeepTriggeredAbility;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.common.delayed.AtTheBeginOfNextUpkeepDelayedTriggeredAbility;
|
||||
import mage.abilities.common.delayed.AtTheBeginOfNextEndStepDelayedTriggeredAbility;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
|
@ -80,7 +80,7 @@ public class TheScarabGod extends CardImpl {
|
|||
ability.addTarget(new TargetCardInGraveyard(1, 1, new FilterCreatureCard("creature card from a graveyard")));
|
||||
this.addAbility(ability);
|
||||
|
||||
// When The Scarab God dies, return it to its owner's hand at the beginning of the next upkeep.
|
||||
// When The Scarab God dies, return it to its owner's hand at the beginning of the next end step.
|
||||
this.addAbility(new DiesTriggeredAbility(new TheScarabGodEffect3()));
|
||||
}
|
||||
|
||||
|
@ -190,7 +190,7 @@ class TheScarabGodEffect3 extends OneShotEffect {
|
|||
// Create delayed triggered ability
|
||||
Effect effect = new ReturnToHandSourceEffect(false, true);
|
||||
effect.setText(staticText);
|
||||
DelayedTriggeredAbility delayedAbility = new AtTheBeginOfNextUpkeepDelayedTriggeredAbility(effect);
|
||||
DelayedTriggeredAbility delayedAbility = new AtTheBeginOfNextEndStepDelayedTriggeredAbility(effect);
|
||||
game.addDelayedTriggeredAbility(delayedAbility, source);
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue