core: ygol_query_prompt_context names the effect that asks a prompt (TICKET-451, v1.7.0)
field::execute_cost / execute_target / execute_operation push the running effect (handler, description, stable index, phase 1 / 2 / 3, chain link) on core.ygol_running at step 0 and pop it when the function finishes; the innermost entry is the effect that asks. effect::ygol_script_index is stamped in card::add_effect while the card loads (initial_effect.size()), 0xffff otherwise. The export writes 22 bytes; a handler the asking player does not control and that is not face-up answers code 0, index 0xffff, description 0. Export gates 335 / 856 / 850 -> 336 / 857 / 851. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4cd908d7af
commit
b6ef8a31bc
10 files changed
+109
-10
No files matched your search
@@ -65,6 +65,7 @@ public:
|
||||
int32_t operation{ 0 };
|
||||
uint8_t cost_checked{ FALSE };
|
||||
uint8_t is_granted{ 0 };
|
||||
uint16_t ygol_script_index{ 0xffff }; // [YGOL] v1.7.0 prompt context: registration order in the card's initial_effect, 0xffff = not from it
|
||||
|
||||
effect_set required_handorset_effects;
|
||||
LuaParamType object_type{ PARAM_TYPE_INT };
|
||||
|
||||
Reference in new issue
Block a user