Commit 2f08ca2a authored by wind2009's avatar wind2009

Fix 黄泉天輪

parent b1e7e9f7
Pipeline #42063 canceled with stages
in 4 seconds
...@@ -48,35 +48,15 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -48,35 +48,15 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
local g2=Duel.GetMatchingGroup(Card.IsType,p2,0,LOCATION_DECK,nil,TYPE_MONSTER) local g2=Duel.GetMatchingGroup(Card.IsType,p2,0,LOCATION_DECK,nil,TYPE_MONSTER)
local b1=#g1>0 and Duel.Remove(g1,POS_FACEDOWN,REASON_EFFECT,p1)>0 local b1=#g1>0 and Duel.Remove(g1,POS_FACEDOWN,REASON_EFFECT,p1)>0
local b2=#g2>0 and Duel.Remove(g2,POS_FACEDOWN,REASON_EFFECT,p2)>0 local b2=#g2>0 and Duel.Remove(g2,POS_FACEDOWN,REASON_EFFECT,p2)>0
if b1 or b2 then if (b1 or b2) and Duel.GetLocationCount(p1,LOCATION_MZONE)>0
local tc1=nil and Duel.IsExistingMatchingCard(aux.NecroValleyFilter(s.spfilter1),p1,LOCATION_GRAVE,0,1,nil,e,p1)
local tc2=nil and Duel.SelectYesNo(p1,aux.Stringid(id,2)) then
if Duel.GetLocationCount(p1,LOCATION_MZONE)>0 Duel.Hint(HINT_SELECTMSG,p1,HINTMSG_SPSUMMON)
and Duel.IsExistingMatchingCard(aux.NecroValleyFilter(s.spfilter1),p1,LOCATION_GRAVE,0,1,nil,e,p1) local sg1=Duel.SelectMatchingCard(p1,aux.NecroValleyFilter(s.spfilter1),p1,LOCATION_GRAVE,0,1,1,nil,e,p1)
and Duel.SelectYesNo(p1,aux.Stringid(id,2)) then Duel.HintSelection(sg1)
Duel.Hint(HINT_SELECTMSG,p1,HINTMSG_SPSUMMON) local sc=sg1:GetFirst()
local sg1=Duel.SelectMatchingCard(p1,aux.NecroValleyFilter(s.spfilter1),p1,LOCATION_GRAVE,0,1,1,nil,e,p1) Duel.BreakEffect()
Duel.HintSelection(sg1) Duel.SpecialSummon(sc,0,p1,p1,false,false,POS_FACEUP)
tc1=sg1:GetFirst()
end
if Duel.GetLocationCount(p2,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(aux.NecroValleyFilter(s.spfilter1),p2,LOCATION_GRAVE,0,1,nil,e,p2)
and Duel.SelectYesNo(p2,aux.Stringid(id,2)) then
Duel.Hint(HINT_SELECTMSG,p2,HINTMSG_SPSUMMON)
local sg2=Duel.SelectMatchingCard(p2,aux.NecroValleyFilter(s.spfilter1),p2,LOCATION_GRAVE,0,1,1,nil,e,p2)
Duel.HintSelection(sg2)
tc2=sg2:GetFirst()
end
if tc1~=nil or tc2~=nil then
Duel.BreakEffect()
if tc1 then
Duel.SpecialSummonStep(tc1,0,p1,p1,false,false,POS_FACEUP)
end
if tc2 then
Duel.SpecialSummonStep(tc2,0,p2,p2,false,false,POS_FACEUP)
end
Duel.SpecialSummonComplete()
end
end end
end end
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