Commit 5f492c4c authored by Tachibana's avatar Tachibana

ndyd

parent 69c72393
...@@ -11,7 +11,7 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -11,7 +11,7 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetFieldGroup(tp,LOCATION_MZONE,LOCATION_MZONE) local g=Duel.GetFieldGroup(tp,LOCATION_MZONE,LOCATION_MZONE)
local g1=Duel.GetMatchingGroup(cm.cfilter,tp,LOCATION_MZONE,0,nil) local g1=Duel.GetMatchingGroup(cm.cfilter,tp,LOCATION_MZONE,0,nil)
if chk==0 then return #g>0 end if chk==0 then return #g>0 end
local op=rsof.SelectOption(tp,#g1>0,{m,2},#g1>0,{m,3},#g>0,{m,4}) local op=rshint.SelectOption(tp,#g1>0,{m,2},#g1>0,{m,3},#g>0,{m,4})
if op==3 then if op==3 then
e:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
Duel.SetTargetPlayer(tp) Duel.SetTargetPlayer(tp)
......
...@@ -42,7 +42,7 @@ function cm.disop(e,tp) ...@@ -42,7 +42,7 @@ function cm.disop(e,tp)
local g1=Duel.GetMatchingGroup(aux.disfilter1,tp,0,LOCATION_MZONE,nil) local g1=Duel.GetMatchingGroup(aux.disfilter1,tp,0,LOCATION_MZONE,nil)
local g2=Duel.GetMatchingGroup(cm.disfilter,tp,0,LOCATION_ONFIELD,nil) local g2=Duel.GetMatchingGroup(cm.disfilter,tp,0,LOCATION_ONFIELD,nil)
if #g1<=0 and #g2<=0 then return end if #g1<=0 and #g2<=0 then return end
local op=rsof.SelectOption(tp,#g1>0,{m,1},#g2>0,{m,2}) local op=rshint.SelectOption(tp,#g1>0,{m,1},#g2>0,{m,2})
local g=Group.CreateGroup() local g=Group.CreateGroup()
if op==1 then g:Merge(g1) if op==1 then g:Merge(g1)
else else
......
...@@ -51,7 +51,7 @@ function cm.op2(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -51,7 +51,7 @@ function cm.op2(e,tp,eg,ep,ev,re,r,rp,chk)
local g1=rg:Filter(Card.IsAbleToHand,nil) local g1=rg:Filter(Card.IsAbleToHand,nil)
local g2=g1:Filter(Card.IsSetCard,nil,0x442) local g2=g1:Filter(Card.IsSetCard,nil,0x442)
if #g1<=0 and #g2<=0 then return end if #g1<=0 and #g2<=0 then return end
local op=rsof.SelectOption(tp,true,aux.Stringid(m,1),#g1>0,aux.Stringid(m,2),#g2>0,aux.Stringid(m,3)) local op=rshint.SelectOption(tp,true,aux.Stringid(m,1),#g1>0,aux.Stringid(m,2),#g2>0,aux.Stringid(m,3))
local g=nil local g=nil
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
if op==2 then if op==2 then
......
...@@ -35,7 +35,7 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp) ...@@ -35,7 +35,7 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
local b2=g:FilterCount(f,nil,TYPE_MONSTER)==#g and #g>=3 local b2=g:FilterCount(f,nil,TYPE_MONSTER)==#g and #g>=3
local b3=b2 and Duel.IsPlayerCanDiscardDeck(tp,#g) and #g>=4 local b3=b2 and Duel.IsPlayerCanDiscardDeck(tp,#g) and #g>=4
if not b1 and not b2 and not b3 then return end if not b1 and not b2 and not b3 then return end
local op=rsof.SelectOption(tp,b1,{m,0},b2,{m,1},b3,{m,2}) local op=rshint.SelectOption(tp,b1,{m,0},b2,{m,1},b3,{m,2})
if op>=1 then if op>=1 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local tg1=g:FilterSelect(tp,f,1,1,nil) local tg1=g:FilterSelect(tp,f,1,1,nil)
......
...@@ -35,7 +35,7 @@ function cm.thop(e,tp) ...@@ -35,7 +35,7 @@ function cm.thop(e,tp)
if not tc then return end if not tc then return end
local b1=cm.b1(tc) local b1=cm.b1(tc)
local b2=cm.b2(tc) local b2=cm.b2(tc)
local op=rsof.SelectOption(tp,b1,{m,0},b2,{m,1},true) local op=rshint.SelectOption(tp,b1,{m,0},b2,{m,1},true)
if op==1 then if op==1 then
Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.SendtoHand(tc,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,tc) Duel.ConfirmCards(1-tp,tc)
......
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