Added attachment controller info (#10440)

Fixes magefree/mage#9971
This commit is contained in:
Alexander Novotny 2023-06-08 18:34:26 -07:00 committed by GitHub
parent a0f8a42699
commit 76f30b3046
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 2 deletions

View file

@ -334,6 +334,9 @@ public final class GuiDisplayUtil {
buffer.append("[only controlled] ");
}
}
if (card instanceof PermanentView && ((PermanentView) card).isAttachedToDifferentlyControlledPermanent()) {
buffer.append('(').append(((PermanentView) card).getNameController()).append(") ");
}
if (card.getMageObjectType() != MageObjectType.NULL) {
buffer.append(card.getMageObjectType().toString());
}