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