Commit 15c0d86c authored by Grajade's avatar Grajade

Update c24094.lua

parent fa2183dc
......@@ -42,20 +42,18 @@ end
function c24094.spcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
return not Duel.IsExistingMatchingCard(aux.TRUE,tp,LOCATION_MZONE,0,1,nil) or
not Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_MZONE,1,nil)
return Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)<1
or Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE)<1
end
function c24094.spop(e,tp,eg,ep,ev,re,r,rp,c)
local opt=2
local c1=Duel.IsExistingMatchingCard(aux.TRUE,tp,LOCATION_MZONE,0,1,nil)
local c2=Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_MZONE,1,nil)
if not c1 then opt=0 end
if not c2 then opt=1 end
if not c1 and not c2 then opt=Duel.SelectOption(tp,aux.Stringid(24094,0),aux.Stringid(24094,1)) end
if opt==1 then
e:SetProperty(EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_SPSUM_PARAM)
e:SetTargetRange(POS_FACEUP,1)
end
local b1=Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)<1
local b2=Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE)<1
if b1 then opt=0 end
if b2 then opt=1 end
if b1 and b2 then opt=Duel.SelectOption(tp,aux.Stringid(24094,0),aux.Stringid(24094,1)) end
e:SetProperty(EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_SPSUM_PARAM)
e:SetTargetRange(POS_FACEUP,opt)
--cannot spsummon
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
......
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