Commit f7de8353 authored by Hans Mackowiak's avatar Hans Mackowiak

Merge branch 'patch-2' into 'master'

CardUtil:getLKICopy with Breadcrumb

See merge request core-developers/forge!1067
parents 4f91b984 8eb39e28
......@@ -26,6 +26,9 @@ import;
import io.sentry.Sentry;
import io.sentry.event.BreadcrumbBuilder;
import forge.ImageKeys;
import forge.card.CardStateName;
import forge.card.CardType;
......@@ -203,6 +206,15 @@ public final class CardUtil {
* @return a copy of C with LastKnownInfo stuff retained.
public static Card getLKICopy(final Card in) {
String msg = "CardUtil:getLKICopy copy object";
new BreadcrumbBuilder().setMessage(msg)
.withData("Card", in.getName())
.withData("CardState", in.getCurrentStateName().toString())
.withData("Player", in.getController().getName())
final Card newCopy = new Card(in.getId(), in.getPaperCard(), false, in.getGame());
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment