* Grisly Spectacle - Fixed a bug that no card milling was done, if the target was not destroyed (e.g. regenerated).

This commit is contained in:
LevelX2 2013-06-17 13:51:20 +02:00
parent c6a283583a
commit 15784126a0

View file

@ -100,11 +100,11 @@ class GrislySpectacleEffect extends OneShotEffect<GrislySpectacleEffect> {
Player controller = game.getPlayer(creature.getControllerId()); Player controller = game.getPlayer(creature.getControllerId());
if (controller != null) { if (controller != null) {
int power = creature.getPower().getValue(); int power = creature.getPower().getValue();
if (creature.destroy(source.getSourceId(), game, false)) { creature.destroy(source.getSourceId(), game, false);
Effect effect = new PutLibraryIntoGraveTargetEffect(power); // the mill effect works also if creature is indestructible or regenerated
effect.setTargetPointer(new FixedTarget(controller.getId())); Effect effect = new PutLibraryIntoGraveTargetEffect(power);
return effect.apply(game, source); effect.setTargetPointer(new FixedTarget(controller.getId()));
} return effect.apply(game, source);
} }
} }
return false; return false;