From 2d528bdb2e033478dac20a6613f57a646c3aa6ea Mon Sep 17 00:00:00 2001 From: YiLong-jin <83805253+YiLong-jin@users.noreply.github.com> Date: Thu, 26 Dec 2024 16:59:37 +0800 Subject: [PATCH] Update c72705654.lua Added RegisterMergedDelayedEvent_ToSingleCard method for some cards in the DP29 branch to fix the large number of unknown options caused by the timing of these cards being induced by multiple cards at the same time. Should be tested in conjunction with #2793 --- c72705654.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/c72705654.lua b/c72705654.lua index 80431b51c5..2a4d22d3bd 100644 --- a/c72705654.lua +++ b/c72705654.lua @@ -26,10 +26,11 @@ function s.initial_effect(c) e2:SetOperation(s.spop2) c:RegisterEffect(e2) -- + local custom_code=aux.RegisterMergedDelayedEvent_ToSingleCard(c,id,EVENT_SPSUMMON_SUCCESS) local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,2)) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) - e3:SetCode(EVENT_CUSTOM+id) + e3:SetCode(custom_code) e3:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY) e3:SetRange(LOCATION_GRAVE+LOCATION_HAND) e3:SetCountLimit(1,id+o*2) @@ -38,7 +39,6 @@ function s.initial_effect(c) e3:SetTarget(s.mattg) e3:SetOperation(s.matop) c:RegisterEffect(e3) - aux.RegisterMergedDelayedEvent(c,id,EVENT_SPSUMMON_SUCCESS) end function s.spcon(e,tp,eg,ep,ev,re,r,rp) return not e:GetHandler():IsReason(REASON_DRAW)