Commit 5e6ed117 authored by IamIpanda's avatar IamIpanda

持戒僧不允许空发

parent dabeaa70
Pipeline #38845 failed with stages
in 108 minutes and 54 seconds
...@@ -31,8 +31,8 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -31,8 +31,8 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
local g1=Duel.GetMatchingGroup(s.filter1,tp,LOCATION_DECK,0,nil) local g1=Duel.GetMatchingGroup(s.filter1,tp,LOCATION_DECK,0,nil)
local g2=Duel.GetMatchingGroup(s.filter2,tp,LOCATION_DECK,0,nil) local g2=Duel.GetMatchingGroup(s.filter2,tp,LOCATION_DECK,0,nil)
local g=Group.CreateGroup() local g=Group.CreateGroup()
if #g1>0 and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then if #g1>0 and (#g2==0 or Duel.SelectYesNo(tp,aux.Stringid(id,0))) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET)
local sg=g1:Select(tp,1,1,nil) local sg=g1:Select(tp,1,1,nil)
g:Merge(sg) g:Merge(sg)
Duel.MoveToField(sg:GetFirst(),tp,tp,LOCATION_SZONE,POS_FACEUP,true) Duel.MoveToField(sg:GetFirst(),tp,tp,LOCATION_SZONE,POS_FACEUP,true)
...@@ -44,8 +44,8 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -44,8 +44,8 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
e2:SetReset(RESET_PHASE+PHASE_END) e2:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e2,tp) Duel.RegisterEffect(e2,tp)
end end
if #g2>0 and Duel.SelectYesNo(tp,aux.Stringid(id,2)) then if #g==0 or (#g2>0 and Duel.SelectYesNo(tp,aux.Stringid(id,1))) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET)
local sg=g2:Select(tp,1,1,nil) local sg=g2:Select(tp,1,1,nil)
g:Merge(sg) g:Merge(sg)
Duel.SSet(tp,sg) Duel.SSet(tp,sg)
......
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