[VOW] fixed Edgar, Charmed Groom not returning under owner's control

This commit is contained in:
Evan Kranzler 2021-11-11 07:02:25 -05:00
parent 5287e1aa4d
commit 1d610aed69
2 changed files with 7 additions and 7 deletions

View file

@ -45,7 +45,7 @@ public final class BiolumeEgg extends CardImpl {
// When you sacrifice Biolume Egg, return it to the battlefield transformed under its owner's control at the beginning of the next end step.
this.addAbility(new TransformAbility());
this.addAbility(new SacrificeSourceTriggeredAbility(new CreateDelayedTriggeredAbilityEffect(
new AtTheBeginOfNextEndStepDelayedTriggeredAbility(new ReturnLoyalCatharEffect()), true
new AtTheBeginOfNextEndStepDelayedTriggeredAbility(new BiolumeEggEffect()), true
).setText("return it to the battlefield transformed under its owner's control at the beginning of the next end step"), false));
}
@ -59,20 +59,20 @@ public final class BiolumeEgg extends CardImpl {
}
}
class ReturnLoyalCatharEffect extends OneShotEffect {
class BiolumeEggEffect extends OneShotEffect {
public ReturnLoyalCatharEffect() {
public BiolumeEggEffect() {
super(Outcome.PutCardInPlay);
this.staticText = "return it to the battlefield transformed under your control";
}
public ReturnLoyalCatharEffect(final ReturnLoyalCatharEffect effect) {
public BiolumeEggEffect(final BiolumeEggEffect effect) {
super(effect);
}
@Override
public ReturnLoyalCatharEffect copy() {
return new ReturnLoyalCatharEffect(this);
public BiolumeEggEffect copy() {
return new BiolumeEggEffect(this);
}
@Override

View file

@ -82,7 +82,7 @@ class EdgarCharmedGroomEffect extends OneShotEffect {
return false;
}
game.getState().setValue(TransformAbility.VALUE_KEY_ENTER_TRANSFORMED + source.getSourceId(), Boolean.TRUE);
controller.moveCards((Card) sourceObject, Zone.BATTLEFIELD, source, game);
controller.moveCards((Card) sourceObject, Zone.BATTLEFIELD, source, game, false, false, true, null);
return true;
}
}