Commit 3f685a80 authored by jwyxym's avatar jwyxym Committed by GitHub

Add files via upload

parent 7d9dfcb2
...@@ -395,12 +395,13 @@ function VgF.SearchCard(loc,f) ...@@ -395,12 +395,13 @@ function VgF.SearchCard(loc,f)
local g=Duel.SelectMatchingCard(tp,function (c) local g=Duel.SelectMatchingCard(tp,function (c)
if VgF.GetValueType(f)=="function" and not f(c) then return false end if VgF.GetValueType(f)=="function" and not f(c) then return false end
return c:IsAbleToHand() return c:IsAbleToHand()
end end,tp,loc,0,1,1,nil)
,tp,loc,0,1,1,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
end end
local sg=Duel.GetOperatedGroup()
return sg:GetCount()
end end
end end
function VgF.SearchCardSpecialSummon(loc,f) function VgF.SearchCardSpecialSummon(loc,f)
...@@ -410,12 +411,13 @@ function VgF.SearchCardSpecialSummon(loc,f) ...@@ -410,12 +411,13 @@ function VgF.SearchCardSpecialSummon(loc,f)
local g=Duel.SelectMatchingCard(tp,function (c) local g=Duel.SelectMatchingCard(tp,function (c)
if VgF.GetValueType(f)=="function" and not f(c) then return false end if VgF.GetValueType(f)=="function" and not f(c) then return false end
return c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_ATTACK) return c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_ATTACK)
end end,tp,loc,0,1,1,nil)
,tp,loc,0,1,1,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
if loc&LOCATION_DECK+LOCATION_HAND+LOCATION_EXTRA==0 then Duel.HintSelection(g) end if loc&LOCATION_DECK+LOCATION_HAND+LOCATION_EXTRA==0 then Duel.HintSelection(g) end
VgF.Call(g,0,tp) VgF.Call(g,0,tp)
end end
local sg=Duel.GetOperatedGroup()
return sg:GetCount()
end end
end end
function Group.CheckSubGroup(g,f,min,max,...) function Group.CheckSubGroup(g,f,min,max,...)
......
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