[KHM] Foretell - Do not show card name in game log (fixes #7522)

This commit is contained in:
Daniel Bomar 2021-02-08 09:09:11 -06:00
parent 2716c60fb5
commit ec01caece1
No known key found for this signature in database
GPG key ID: C86C8658F4023918
2 changed files with 14 additions and 2 deletions

View file

@ -31,6 +31,7 @@ public class ExileTargetEffect extends OneShotEffect {
private UUID exileId = null;
protected boolean multitargetHandling;
private boolean toSourceExileZone = false; // exile the targets to a source object specific exile zone (takes care of zone change counter)
private boolean withName = true;
public ExileTargetEffect(String effectText) {
this(effectText, false);
@ -73,6 +74,7 @@ public class ExileTargetEffect extends OneShotEffect {
this.onlyFromZone = effect.onlyFromZone;
this.multitargetHandling = effect.multitargetHandling;
this.toSourceExileZone = effect.toSourceExileZone;
this.withName = effect.withName;
}
@Override
@ -85,6 +87,10 @@ public class ExileTargetEffect extends OneShotEffect {
return this;
}
public void setWithName(boolean withName) {
this.withName = withName;
}
@Override
public boolean apply(Game game, Ability source) {
Player controller = game.getPlayer(source.getControllerId());
@ -160,7 +166,7 @@ public class ExileTargetEffect extends OneShotEffect {
exileZone = sourceObject.getIdName();
}
}
controller.moveCardsToExile(toExile, source, game, true, exileId, exileZone);
controller.moveCardsToExile(toExile, source, game, withName, exileId, exileZone);
return true;
}
return false;