mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
Show the card being discarded for discard replacement effects
This commit is contained in:
@@ -195,7 +195,9 @@ public class ReplacementHandler {
|
||||
}
|
||||
|
||||
String effectDesc = replacementEffect.toString().replace("CARDNAME", replacementEffect.getHostCard().getName());
|
||||
final String question = String.format("Apply replacement effect of %s?\r\n(%s)", replacementEffect.getHostCard(), effectDesc);
|
||||
final String question = replacementEffect instanceof ReplaceDiscard
|
||||
? String.format("Apply replacement effect of %s to %s?\r\n(%s)", replacementEffect.getHostCard(), runParams.get("Card").toString(), effectDesc)
|
||||
: String.format("Apply replacement effect of %s?\r\n(%s)", replacementEffect.getHostCard(), effectDesc);
|
||||
boolean confirmed = optDecider.getController().confirmReplacementEffect(replacementEffect, effectSA, question);
|
||||
if (!confirmed) {
|
||||
return ReplacementResult.NotReplaced;
|
||||
|
||||
Reference in New Issue
Block a user