Commit e8527bf6 authored by Huangnan's avatar Huangnan

fix

parent 729f7525
Pipeline #33564 passed with stages
in 48 minutes and 50 seconds
No preview for this file type
...@@ -167,7 +167,7 @@ function cm.spfilter(c,e,tp,lv) ...@@ -167,7 +167,7 @@ function cm.spfilter(c,e,tp,lv)
return c:IsLevelBelow(lv) and c:IsSetCard(0xccb) return c:IsLevelBelow(lv) and c:IsSetCard(0xccb)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
and ((c:IsLocation(LOCATION_DECK) and Duel.GetMZoneCount(tp)>0) and ((c:IsLocation(LOCATION_DECK) and Duel.GetMZoneCount(tp)>0)
or (c:IsLocation(LOCATION_EXTRA) and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0 and c:IsFaceup())) or (c:IsLocation(LOCATION_EXTRA) and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0))
end end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.spfilter,tp,LOCATION_DECK+LOCATION_EXTRA,0,1,nil,e,tp,e:GetHandler():GetLevel()) end if chk==0 then return Duel.IsExistingMatchingCard(cm.spfilter,tp,LOCATION_DECK+LOCATION_EXTRA,0,1,nil,e,tp,e:GetHandler():GetLevel()) end
......
...@@ -124,7 +124,7 @@ function cm.ptarget(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -124,7 +124,7 @@ function cm.ptarget(e,tp,eg,ep,ev,re,r,rp,chk)
local lab_a=c:IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 local lab_a=c:IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
local lab_b=Duel.IsExistingMatchingCard(cm.seqcheck2,tp,0,LOCATION_ONFIELD,1,nil,1-tp) and Duel.GetTurnPlayer()==tp and Duel.GetCurrentChain()<1 local lab_b=Duel.IsExistingMatchingCard(cm.seqcheck2,tp,0,LOCATION_ONFIELD,1,nil,1-tp) and Duel.GetTurnPlayer()==tp and Duel.GetCurrentChain()<1
if chk==0 then return lab_a or lab_b end if chk==0 then return lab_a or lab_b end
local lab_b2=Duel.IsExistingMatchingCard(cm.seqcheck2,tp,0,LOCATION_ONFIELD,1,nil,1-tp) and Duel.GetTurnPlayer()==tp local lab_b2=Duel.IsExistingMatchingCard(cm.seqcheck2,tp,0,LOCATION_ONFIELD,1,nil,1-tp) and Duel.GetTurnPlayer()==tp and Duel.GetCurrentChain()==1
local op=2 local op=2
if lab_a and lab_b2 then if lab_a and lab_b2 then
op=Duel.SelectOption(tp,aux.Stringid(m,0),aux.Stringid(m,1)) op=Duel.SelectOption(tp,aux.Stringid(m,0),aux.Stringid(m,1))
...@@ -153,7 +153,7 @@ function cm.poperation(e,tp,eg,ep,ev,re,r,rp) ...@@ -153,7 +153,7 @@ function cm.poperation(e,tp,eg,ep,ev,re,r,rp)
while Duel.IsExistingMatchingCard(cm.seqcheck2,tp,0,LOCATION_ONFIELD,1,nil,1-tp) do while Duel.IsExistingMatchingCard(cm.seqcheck2,tp,0,LOCATION_ONFIELD,1,nil,1-tp) do
local g=Duel.GetMatchingGroup(cm.seqcheck2,tp,0,LOCATION_ONFIELD,nil,1-tp) local g=Duel.GetMatchingGroup(cm.seqcheck2,tp,0,LOCATION_ONFIELD,nil,1-tp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local sg=g:Select(tp,1,1,nil) local sg=g:Select(1-tp,1,1,nil)
Duel.SendtoGrave(sg,REASON_RULE) Duel.SendtoGrave(sg,REASON_RULE)
end end
end end
......
--与天界的再续 --天界法 忒希斯
--与天界的再续
local m=16104416 local m=16104416
local cm=_G["c"..m] local cm=_G["c"..m]
function cm.initial_effect(c) function cm.initial_effect(c)
......
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