forked from External/mage
[KHM] Foretell - Do not show card name in game log (fixes #7522)
This commit is contained in:
parent
2716c60fb5
commit
ec01caece1
2 changed files with 14 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue