diff --git a/projects/mtg/bin/Res/rules/modrules.xml b/projects/mtg/bin/Res/rules/modrules.xml
index 67f09a49f..e4931f59a 100644
--- a/projects/mtg/bin/Res/rules/modrules.xml
+++ b/projects/mtg/bin/Res/rules/modrules.xml
@@ -42,6 +42,10 @@
-
+ -
+
+ mtgid
+
-
expansion rarity
diff --git a/projects/mtg/src/CardGui.cpp b/projects/mtg/src/CardGui.cpp
index aec348638..7080ab882 100644
--- a/projects/mtg/src/CardGui.cpp
+++ b/projects/mtg/src/CardGui.cpp
@@ -659,6 +659,14 @@ void CardGui::AlternateRender(MTGCard * card, const Pos& pos)
}
+ found = Carditem->mName.find("cardid"); // Write the cardid
+ if (found != string::npos)
+ {
+ stringstream st;
+ st << card->getMTGId();
+ formattedfield = FormattedData(formattedfield, "mtgid", st.str());
+ }
+
found = Carditem->mName.find("power"); // Write the strength
if (found != string::npos)
{