Commit 1b0265de authored by REIKAI's avatar REIKAI 💬

fix bug

parent 4147f59a
......@@ -80,11 +80,11 @@ function c1009022.thfilter1(c,tp)
return c:IsFaceup() and c:IsType(TYPE_PENDULUM) and c:IsSetCard(0x520c) and c:IsAbleToHand()
end
function c1009022.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c1009022.thfilter1,tp,LOCATION_EXTRA,0,1,nil,tp) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,2,tp,LOCATION_EXTRA)
if chk==0 then return Duel.IsExistingMatchingCard(c1009022.thfilter1,tp,LOCATION_EXTRA+LOCATION_GRAVE,0,1,nil,tp) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,2,tp,LOCATION_EXTRA+LOCATION_GRAVE)
end
function c1009022.thop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c1009022.thfilter1,tp,LOCATION_EXTRA,0,nil)
local g=Duel.GetMatchingGroup(aux.NecroValleyFilter(c1009022.thfilter1),tp,LOCATION_EXTRA+LOCATION_GRAVE,0,nil)
if g:GetCount()<2 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local sg=g:Select(tp,2,2,nil)
......
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