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)
local c=e:GetHandler()
local res=0
if c:IsHasEffect(73206827) then
local off=1
local ops={}
local opval={}
if Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp) then
ops[off]=aux.Stringid(id,2)
opval[off-1]=1
off=off+1
local b1=Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp)
local b2=Duel.GetLocationCount(1-tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(s.spfilter2,tp,LOCATION_DECK,0,1,nil,e,tp)
if b1 and not b2 then
Duel.Hint(HINT_OPSELECTED,1-tp,60)
res=1
end
if Duel.GetLocationCount(1-tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(s.spfilter2,tp,LOCATION_DECK,0,1,nil,e,tp) then
ops[off]=aux.Stringid(id,3)
opval[off-1]=0
off=off+1
if b2 and not b1 then
Duel.Hint(HINT_OPSELECTED,1-tp,61)
res=2
end
if b1 and b2 then
res=aux.SelectFromOptions(tp,
{b1,60},
{b2,61})
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
......
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