Fix issue #1512 - Sweep Away does not return attacking creature to hand

This commit is contained in:
Skyler Sell 2016-02-03 15:22:29 -08:00
parent 5df59e9fd4
commit 72ababc597

View file

@ -85,6 +85,8 @@ class SweepAwayEffect extends OneShotEffect {
if (permanent.isAttacking()) {
if (controller.chooseUse(Outcome.Neutral, "Put " + permanent.getIdName() + " on top of its owner's library (otherwise return to hand)?", source, game)) {
new PutOnLibraryTargetEffect(true).apply(game, source);
} else {
new ReturnToHandTargetEffect(true).apply(game, source);
}
} else {
new ReturnToHandTargetEffect(true).apply(game, source);