Commit d4e1722f authored by wind2009's avatar wind2009

Update アルカナフォースEX-THE CHAOS RULER

parent 55be6d38
...@@ -53,23 +53,21 @@ function s.coinop(e,tp,eg,ep,ev,re,r,rp) ...@@ -53,23 +53,21 @@ function s.coinop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local res=0 local res=0
if c:IsHasEffect(73206827) then if c:IsHasEffect(73206827) then
local off=1 local b1=Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil,e,tp)
local ops={} local b2=Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil)
local opval={} if b1 and not b2 then
if Duel.GetLocationCount(tp,LOCATION_MZONE)>0 Duel.Hint(HINT_OPSELECTED,1-tp,60)
and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil,e,tp) then res=1
ops[off]=aux.Stringid(id,2)
opval[off-1]=0
off=off+1
end end
if Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil) then if b2 and not b1 then
ops[off]=aux.Stringid(id,3) Duel.Hint(HINT_OPSELECTED,1-tp,61)
opval[off-1]=1 res=2
off=off+1 end
if b1 and b2 then
res=aux.SelectFromOptions(tp,
{b1,60},
{b2,61})
end end
if off==1 then return end
local op=Duel.SelectOption(tp,table.unpack(ops))
res=opval[op]
else res=Duel.TossCoin(tp,1) end else res=Duel.TossCoin(tp,1) end
if res==1 then if res==1 then
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return 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