Commit efc9dcfb authored by wind2009's avatar wind2009

Update アルカナフォースⅤ-THE HIEROPHANT

parent 6a3936c3
...@@ -107,24 +107,21 @@ function s.coinop(e,tp,eg,ep,ev,re,r,rp) ...@@ -107,24 +107,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,0,1,nil,e,tp)
local ops={} local b2=Duel.GetLocationCount(1-tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(s.spfilter2,tp,LOCATION_DECK,0,1,nil,e,tp)
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,0,1,nil,e,tp) then res=1
ops[off]=aux.Stringid(id,2)
opval[off-1]=1
off=off+1
end end
if Duel.GetLocationCount(1-tp,LOCATION_MZONE)>0 if b2 and not b1 then
and Duel.IsExistingMatchingCard(s.spfilter2,tp,LOCATION_DECK,0,1,nil,e,tp) then Duel.Hint(HINT_OPSELECTED,1-tp,61)
ops[off]=aux.Stringid(id,3) res=2
opval[off-1]=0 end
off=off+1 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 else
res=Duel.TossCoin(tp,1) res=Duel.TossCoin(tp,1)
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