Commit 43547fd6 authored by mercury233's avatar mercury233

fix

parent 19d8c29d
......@@ -9,7 +9,7 @@ function c100236109.initial_effect(c)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,100236109+EFFECT_COUNT_CODE_OATH)
e1:SetTarget(c100236109.target)
e1:SetOperation(c100236109.activate)
e1:SetOperation(c100236109.operation)
c:RegisterEffect(e1)
end
c100236109.card_code_list={46986414,38033121}
......
......@@ -46,10 +46,10 @@ function c101007089.operation(e,tp,eg,ep,ev,re,r,rp)
if ct==0 then return end
local g=Duel.GetDecktopGroup(tp,ct)
Duel.ConfirmDecktop(tp,ct)
g=g:Filter(c101007089.thfilter0,nil)
if g:GetCount()>0 then
tg=g:Filter(c101007089.thfilter0,nil)
if tg:GetCount()>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local tc=g:Select(tp,1,1,nil):GetFirst()
local tc=tg:Select(tp,1,1,nil):GetFirst()
if tc:IsAbleToHand() then
Duel.SendtoHand(tc,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,tc)
......
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