Commit b9ac8faa authored by wyykak's avatar wyykak

temp workaround of stater fields

Signed-off-by: wyykak's avatarwyykak <wyy_1414@126.com>
parent abc984cf
Pipeline #26552 passed with stage
in 20 seconds
......@@ -30,7 +30,9 @@ function this.op1(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local g=Group.CreateGroup()
for i,v in ipairs(this.searchCardList) do
wyykak_reboot_code = v
g:AddCard(Duel.CreateToken(tp,v))
wyykak_reboot_code = nil
end
if Duel.SendtoHand(g,tp,REASON_EFFECT)>0 then
g=g:Filter(Card.IsLocation,nil,LOCATION_HAND)
......
......@@ -2,6 +2,15 @@
local m=14000260
local cm=_G["c"..m]
function cm.initial_effect(c)
if wyykak_reboot_code and wyykak_reboot_code ~= m then
local nm = wyykak_reboot_code
_G["c"..nm] = {}
local ncm = _G["c"..nm]
Duel.LoadScript("c"..nm..".lua")
ncm.initial_effect(c)
return
end
--activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment