Commit 37ea9950 authored by POLYMER's avatar POLYMER

fix

parent 3b60e64a
...@@ -304,6 +304,7 @@ function cm.pcop(e,tp,eg,ep,ev,re,r,rp) ...@@ -304,6 +304,7 @@ function cm.pcop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if Duel.GetFieldGroupCount(1-tp,LOCATION_HAND,0)==0 then return end if Duel.GetFieldGroupCount(1-tp,LOCATION_HAND,0)==0 then return end
local g=Duel.GetFieldGroup(1-tp,LOCATION_HAND,0):RandomSelect(tp,1) local g=Duel.GetFieldGroup(1-tp,LOCATION_HAND,0):RandomSelect(tp,1)
Duel.ConfirmCards(tp,g)
Duel.HintSelection(g) Duel.HintSelection(g)
local tc=g:GetFirst() local tc=g:GetFirst()
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
......
...@@ -80,6 +80,7 @@ function cm.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -80,6 +80,7 @@ function cm.desop(e,tp,eg,ep,ev,re,r,rp)
sc:RegisterEffect(e1,true) sc:RegisterEffect(e1,true)
c:RegisterFlagEffect(m,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1) c:RegisterFlagEffect(m,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1)
Duel.ConfirmCards(tp,sc) Duel.ConfirmCards(tp,sc)
Duel.HintSelection(Group.FromCards(sc))
--hand --hand
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
......
...@@ -132,7 +132,7 @@ function cm.recon(e,tp,eg,ep,ev,re,r,rp) ...@@ -132,7 +132,7 @@ function cm.recon(e,tp,eg,ep,ev,re,r,rp)
return re:IsHasType(EFFECT_TYPE_ACTIVATE) return re:IsHasType(EFFECT_TYPE_ACTIVATE)
end end
function cm.filter(c,tp,seq) function cm.filter(c,tp,seq)
return aux.GetColumn(c,tp)+1==seq return aux.GetColumn(c,tp) and aux.GetColumn(c,tp)==seq-1
end end
function cm.reop(e,tp,eg,ep,ev,re,r,rp) function cm.reop(e,tp,eg,ep,ev,re,r,rp)
local eset={Duel.IsPlayerAffectedByEffect(tp,EFFECT_FLAG_EFFECT+11451961)} local eset={Duel.IsPlayerAffectedByEffect(tp,EFFECT_FLAG_EFFECT+11451961)}
...@@ -153,8 +153,10 @@ function cm.reop(e,tp,eg,ep,ev,re,r,rp) ...@@ -153,8 +153,10 @@ function cm.reop(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.drtg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
local g=Duel.GetMatchingGroup(function(c) return c:GetSequence()<5 end,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil)
if chk==0 then return true end if chk==0 then return true end
if c:IsLocation(LOCATION_GRAVE) then Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,c,1,0,0) end if c:IsLocation(LOCATION_GRAVE) then Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,c,1,0,0) end
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
end end
function cm.cclfilter(c,tc) function cm.cclfilter(c,tc)
local seq1=aux.GetColumn(c) local seq1=aux.GetColumn(c)
......
...@@ -2156,7 +2156,7 @@ function s.randomop(tp) ...@@ -2156,7 +2156,7 @@ function s.randomop(tp)
if s.Random_Mode then if s.Random_Mode then
Debug.Message("灌铅骰子 开") Debug.Message("灌铅骰子 开")
function Group.RandomSelect(g,p,count) function Group.RandomSelect(g,p,count)
return s.Select(g,tp,count,count,nil) return _Group.Select(g,tp,count,count,nil)
end end
function Duel.TossCoin(p,count) function Duel.TossCoin(p,count)
local ct={} local ct={}
...@@ -2164,23 +2164,23 @@ function s.randomop(tp) ...@@ -2164,23 +2164,23 @@ function s.randomop(tp)
local i=1 local i=1
local coin=1 local coin=1
while i<=20 and coin==1 do while i<=20 and coin==1 do
coin=1-s.AnnounceCoin(tp) coin=1-_Duel.AnnounceCoin(tp)
table.insert(ct,coin) table.insert(ct,coin)
i=i+1 i=i+1
end end
s.TossCoin(p,i) _Duel.TossCoin(p,i)
Duel.SetCoinResult(table.unpack(ct)) Duel.SetCoinResult(table.unpack(ct))
else else
for i=1,count do for i=1,count do
table.insert(ct,1-s.AnnounceCoin(tp)) table.insert(ct,1-_Duel.AnnounceCoin(tp))
end end
s.TossCoin(p,count) _Duel.TossCoin(p,count)
Duel.SetCoinResult(table.unpack(ct)) Duel.SetCoinResult(table.unpack(ct))
end end
return table.unpack(ct) return table.unpack(ct)
end end
function Duel.TossDice(p,count) function Duel.TossDice(p,count)
local ac=Duel.AnnounceNumber(tp,1,2,3,4,5,6) local ac=_Duel.AnnounceNumber(tp,1,2,3,4,5,6)
return ac return ac
end end
else else
...@@ -2194,7 +2194,7 @@ function s.toolop(tp) ...@@ -2194,7 +2194,7 @@ function s.toolop(tp)
local op=_Duel.SelectOption(tp,aux.Stringid(id+1,11),aux.Stringid(id+1,12),aux.Stringid(id+1,13),aux.Stringid(id+1,14),aux.Stringid(id+1,15)) local op=_Duel.SelectOption(tp,aux.Stringid(id+1,11),aux.Stringid(id+1,12),aux.Stringid(id+1,13),aux.Stringid(id+1,14),aux.Stringid(id+1,15))
if op==0 then if op==0 then
local p=_Duel.SelectOption(tp,aux.Stringid(id+1,1),aux.Stringid(id+1,2))==0 and tp or 1-tp local p=_Duel.SelectOption(tp,aux.Stringid(id+1,1),aux.Stringid(id+1,2))==0 and tp or 1-tp
local lp=s.AnnounceNumber(tp,80000,16000,8000,4000,2000,1000,500,100,1) local lp=_Duel.AnnounceNumber(tp,80000,16000,8000,4000,2000,1000,500,100,1)
Duel.SetLP(p,lp) Duel.SetLP(p,lp)
elseif op==1 then elseif op==1 then
local g=Duel.GetFieldGroup(tp,LOCATION_ONFIELD,LOCATION_ONFIELD) local g=Duel.GetFieldGroup(tp,LOCATION_ONFIELD,LOCATION_ONFIELD)
...@@ -2213,7 +2213,7 @@ function s.toolop(tp) ...@@ -2213,7 +2213,7 @@ function s.toolop(tp)
Debug.Message("场上没有可以放置专属指示物的卡片!") Debug.Message("场上没有可以放置专属指示物的卡片!")
return return
else else
local ac=s.Select(sg,tp,1,1,nil):GetFirst() local ac=_Group.Select(sg,tp,1,1,nil):GetFirst()
for counter=0x1,0x999 do for counter=0x1,0x999 do
local loc=ac:GetLocation() local loc=ac:GetLocation()
if ac:IsLocation(LOCATION_PZONE) then loc=LOCATION_PZONE end if ac:IsLocation(LOCATION_PZONE) then loc=LOCATION_PZONE end
...@@ -2230,7 +2230,7 @@ function s.toolop(tp) ...@@ -2230,7 +2230,7 @@ function s.toolop(tp)
for i=1,max do for i=1,max do
t[i]=max-i+1 t[i]=max-i+1
end end
ac:AddCounter(counter,s.AnnounceNumber(tp,table.unpack(t))) ac:AddCounter(counter,_Duel.AnnounceNumber(tp,table.unpack(t)))
else else
ac:AddCounter(counter,1) ac:AddCounter(counter,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