Improve rock attribution.

This commit is contained in:
Greyson Parrelli
2026-07-23 11:17:56 -04:00
parent 235b1d9cc8
commit 816ad13f7e
2 changed files with 43 additions and 20 deletions
+6
View File
@@ -588,6 +588,12 @@ func TestSnakeRecurringRocks(t *testing.T) {
if len(rocks) != 2 {
t.Fatalf("snake should volley on each friendly play: %+v", rocks)
}
// The set-aside Snake threw the rocks, not the pet (A/B) in play.
for _, r := range rocks {
if !strings.Contains(r.Text, "Snake") {
t.Fatalf("rock event should credit Snake as the source, got %q", r.Text)
}
}
if res.WinnerSeat != -1 {
t.Fatalf("expected draw, got %d", res.WinnerSeat)
}