Commit 39c9b99a authored by TanakaKotoha's avatar TanakaKotoha

fix

parent 351c3384
Pipeline #513 failed with stages
in 25 minutes and 7 seconds
...@@ -111,6 +111,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -111,6 +111,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local cl=Duel.GetLocationCount(tp,LOCATION_MZONE) local cl=Duel.GetLocationCount(tp,LOCATION_MZONE)
if cl<3 then if cl<3 then
if Duel.IsExistingMatchingCard(nil,tp,0,LOCATION_ONFIELD,1,nil)==0 then return end
srre.codechangeop(e,tp,eg,ep,ev,re,r,rp) srre.codechangeop(e,tp,eg,ep,ev,re,r,rp)
local tc=c local tc=c
local te=tc:GetActivateEffect() local te=tc:GetActivateEffect()
...@@ -140,8 +141,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -140,8 +141,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
local tc=g:RandomSelect(tp,cl) local tc=g:RandomSelect(tp,cl)
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
elseif g:GetCount()>0 then elseif g:GetCount()>0 then
local tc=g:RandomSelect(tp,g) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
end end
end end
end end
\ No newline at end of file
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