Commit 2f0eb189 authored by zengsxing's avatar zengsxing

fix サモン・ソーサレス

parent edb41eb6
...@@ -26,7 +26,7 @@ function c61665245.spfilter1(c,e,tp,zone) ...@@ -26,7 +26,7 @@ function c61665245.spfilter1(c,e,tp,zone)
return c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE,1-tp,zone) return c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE,1-tp,zone)
end end
function c61665245.spfilter2(c,e,tp,rac) function c61665245.spfilter2(c,e,tp,rac)
return c:IsRace(rac) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsRace(rac) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c61665245.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c61665245.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local zone=e:GetHandler():GetLinkedZone(1-tp) local zone=e:GetHandler():GetLinkedZone(1-tp)
...@@ -54,10 +54,10 @@ function c61665245.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -54,10 +54,10 @@ function c61665245.spop(e,tp,eg,ep,ev,re,r,rp)
dc:RegisterEffect(e2) dc:RegisterEffect(e2)
Duel.SpecialSummonComplete() Duel.SpecialSummonComplete()
end end
if tc and Duel.SpecialSummonStep(tc,0,tp,1-tp,false,false,POS_FACEUP_DEFENSE,zone) then if tc and Duel.SpecialSummonStep(tc,0,tp,1-tp,false,false,POS_FACEUP_DEFENSE,zone) and tc:IsLocation(LOCATION_MZONE) then
makeDisable(tc) makeDisable(tc)
local g=Duel.GetMatchingGroup(c61665245.spfilter2,tp,LOCATION_DECK,0,nil,e,tp,tc:GetRace()) local g=Duel.GetMatchingGroup(c61665245.spfilter2,tp,LOCATION_DECK,0,nil,e,tp,tc:GetRace())
if #g>0 and Duel.SelectYesNo(tp,aux.Stringid(61665245,1)) then if #g>0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.SelectYesNo(tp,aux.Stringid(61665245,1)) then
Duel.BreakEffect() Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sc=g:Select(tp,1,1,nil):GetFirst() local sc=g:Select(tp,1,1,nil):GetFirst()
......
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