Commit 2f0eb189 authored by zengsxing's avatar zengsxing

fix サモン・ソーサレス

parent edb41eb6
......@@ -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)
end
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
function c61665245.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local zone=e:GetHandler():GetLinkedZone(1-tp)
......@@ -54,10 +54,10 @@ function c61665245.spop(e,tp,eg,ep,ev,re,r,rp)
dc:RegisterEffect(e2)
Duel.SpecialSummonComplete()
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)
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.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
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