mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
* 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:
parent
c6a283583a
commit
15784126a0
1 changed files with 5 additions and 5 deletions
|
@ -100,11 +100,11 @@ class GrislySpectacleEffect extends OneShotEffect<GrislySpectacleEffect> {
|
|||
Player controller = game.getPlayer(creature.getControllerId());
|
||||
if (controller != null) {
|
||||
int power = creature.getPower().getValue();
|
||||
if (creature.destroy(source.getSourceId(), game, false)) {
|
||||
Effect effect = new PutLibraryIntoGraveTargetEffect(power);
|
||||
effect.setTargetPointer(new FixedTarget(controller.getId()));
|
||||
return effect.apply(game, source);
|
||||
}
|
||||
creature.destroy(source.getSourceId(), game, false);
|
||||
// the mill effect works also if creature is indestructible or regenerated
|
||||
Effect effect = new PutLibraryIntoGraveTargetEffect(power);
|
||||
effect.setTargetPointer(new FixedTarget(controller.getId()));
|
||||
return effect.apply(game, source);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue