From 770e267ebee8c4f2b367d9cf4bc53d13b47cf33a Mon Sep 17 00:00:00 2001 From: AverageConsumer <35539970+AverageConsumer@users.noreply.github.com> Date: Fri, 28 Aug 2026 18:29:54 +0200 Subject: [PATCH] docs(gen2): describe stale caller state accurately --- tests/gen2_phone_call_test.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/gen2_phone_call_test.lua b/tests/gen2_phone_call_test.lua index 32bde861..782814c5 100644 --- a/tests/gen2_phone_call_test.lua +++ b/tests/gen2_phone_call_test.lua @@ -221,9 +221,9 @@ do check(table.concat(pages, "|"):find("Click!", 1, true) ~= nil, "and hanging up on the Click!") - -- The defeated trainer's after-battle script may write wCurCaller again + -- wCurCaller is shared state and may still hold an earlier trainer contact -- before the deferred Mom call starts. The queued call must restore its - -- own caller instead of showing that trainer above Mom's text. + -- own caller instead of showing that stale trainer above Mom's text. vm.curPhoneCaller = 15 local startedAs vm.start = function(self)