Commit c0dfaadf authored by GuGu's avatar GuGu

Update c10919.lua 我啥也不知道

parent 0f453807
Pipeline #19714 passed with stage
in 1 minute and 1 second
......@@ -19,7 +19,7 @@ function c10919.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local ct=0
local class=Duel.GetMatchingGroupCount(c10919.ctfilter, tp, LOCATION_GRAVE, 0, nil)
if class>2 then ct=math.floor(class/3) end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>ct
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c10919.tgfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_GRAVE)
end
......@@ -27,8 +27,9 @@ function c10919.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local ct=1
local class=Duel.GetMatchingGroupCount(c10919.ctfilter, tp, LOCATION_GRAVE, 0, nil)
if class>2 then ct=math.floor(class/3) end
if Duel.GetLocationCount(tp,LOCATION_MZONE)<ct then return end
if class>2 then ct=math.floor(class/3)+1 end
if Duel.GetLocationCount(tp,LOCATION_MZONE)<1 then return end
ct=math.min(ct,Duel.GetLocationCount(tp,LOCATION_MZONE))
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c10919.tgfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,ct,nil,e,tp)
if g:GetCount()>0 then
......
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