Commit 15c0d86c authored by Grajade's avatar Grajade

Update c24094.lua

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