diff --git a/gemp-lotr/db/fix-incorrect-sealed-card.sql b/gemp-lotr/db/fix-incorrect-sealed-card.sql new file mode 100644 index 000000000..ce5818247 --- /dev/null +++ b/gemp-lotr/db/fix-incorrect-sealed-card.sql @@ -0,0 +1,59 @@ + + + + +SELECT * +FROM collection c +INNER JOIN collection_entries ce + ON ce.collection_id = c.id +INNER JOIN player p + ON c.player_id = p.id +LEFT JOIN +( + SELECT collection_id, quantity + FROM collection_entries ce2 + WHERE ce2.product = '101_42' +) X + ON X.collection_id = c.id +WHERE c.type = '1673497069403' + AND product = '101_42' + AND X.collection_id IS NOT NULL +ORDER BY p.name + +SELECT * +FROM transfer t +WHERE player = 'elfwarrior' +ORDER BY id DESC + + + + +SELECT source +FROM collection_entries ce +GROUP BY source + + +INSERT INTO gemp_db.collection_entries +(collection_id, quantity, product_type, product_variant, product, source) +VALUES +(131041, 0, 'CARD', NULL, '101_42', 'Manual admin action'), +(131049, 0, 'CARD', NULL, '101_42', 'Manual admin action'), +(131111, 0, 'CARD', NULL, '101_42', 'Manual admin action'); + + + +UPDATE collection_entries ce +INNER JOIN collection c + ON ce.collection_id = c.id +SET ce.quantity = ce.quantity + 1 +WHERE c.type = '1673497069403' + AND c.id = 131408 + AND ce.product = '101_42' + + + + + +SELECT * +FROM league l +ORDER BY id DESC \ No newline at end of file diff --git a/gemp-lotr/gemp-lotr-cards/src/main/resources/cards/official/set09/set9-1.hjson b/gemp-lotr/gemp-lotr-cards/src/main/resources/cards/official/set09/set9-1.hjson index 01e9d684f..99216b167 100644 --- a/gemp-lotr/gemp-lotr-cards/src/main/resources/cards/official/set09/set9-1.hjson +++ b/gemp-lotr/gemp-lotr-cards/src/main/resources/cards/official/set09/set9-1.hjson @@ -505,6 +505,7 @@ } 9_13: { title: Elven Rope + unique: true culture: elven twilight: 1 type: possession diff --git a/gemp-lotr/gemp-lotr-cards/src/main/resources/cards/unofficial/pc/errata/set02/set02-Moria-errata.hjson b/gemp-lotr/gemp-lotr-cards/src/main/resources/cards/unofficial/pc/errata/set02/set02-Moria-errata.hjson index 83c3e81b4..d0dcd7100 100644 --- a/gemp-lotr/gemp-lotr-cards/src/main/resources/cards/unofficial/pc/errata/set02/set02-Moria-errata.hjson +++ b/gemp-lotr/gemp-lotr-cards/src/main/resources/cards/unofficial/pc/errata/set02/set02-Moria-errata.hjson @@ -32,7 +32,7 @@ type: event effect: { type: playCardFromDiscard - filter: choose(culture(moria),not(title(Foul Things))) + filter: choose(culture(moria),not(title(Foul Things)),not(event,response)) } } gametext: Shadow: Play a [Moria] card from your discard pile.