Commit 49649d9f authored by mercury233's avatar mercury233

fix

parent 623f368a
......@@ -112,6 +112,7 @@ function c100412026.spop(e,tp,eg,ep,ev,re,r,rp)
local lv=e:GetLabel()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c100412026.sfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp,lv)
local tc=g:GetFirst()
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
if #g>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end
end
......@@ -34,7 +34,7 @@ function c101007083.matfilter(c)
return c:IsSetCard(0x229) and c:IsType(TYPE_XYZ) and c:IsFaceup()
end
function c101007083.mattg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return c101007083.matfilter(c) and chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) end
if chkc then return c101007083.matfilter(chkc) and chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) end
if chk==0 then return Duel.IsExistingTarget(c101007083.matfilter,tp,LOCATION_MZONE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
Duel.SelectTarget(tp,c101007083.matfilter,tp,LOCATION_MZONE,0,1,1,nil)
......
......@@ -51,7 +51,7 @@ function c40732515.spop(e,tp,eg,ep,ev,re,r,rp,c)
tc=g:GetFirst()
else
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(40732515,2))
tc=g:Select(tp,1,1,nil)
tc=g:Select(tp,1,1,nil):GetFirst()
end
tc:RemoveCounter(tp,0x1,6,REASON_RULE)
end
......
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