Commit 4ee8e5be authored by VanillaSalt's avatar VanillaSalt

fix

parent dc6e11f2
...@@ -49,14 +49,14 @@ function c3758046.filter(c,e,tp,id) ...@@ -49,14 +49,14 @@ function c3758046.filter(c,e,tp,id)
end end
function c3758046.spop(e,tp,eg,ep,ev,re,r,rp) function c3758046.spop(e,tp,eg,ep,ev,re,r,rp)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
local tg=Duel.SelectMatchingCard(tp,c3758046.filter,tp,LOCATION_GRAVE,0,nil,e,tp,Duel.GetTurnCount()) local tg=Duel.GetMatchingGroup(c3758046.filter,tp,LOCATION_GRAVE,0,nil,e,tp,Duel.GetTurnCount())
if ft<=0 or (Duel.IsPlayerAffectedByEffect(tp,59822133) and tg:GetCount()>1 and ft>1) then return end if ft<=0 or (Duel.IsPlayerAffectedByEffect(tp,59822133) and tg:GetCount()>1 and ft>1) then return end
local g=nil local g=nil
if tg:Getcount()>ft then if tg:GetCount()>ft then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
g=tg:Select(tp,ft,ft,nil) g=tg:Select(tp,ft,ft,nil)
else else
g=tg:Clone() g=tg
end end
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
......
...@@ -19,14 +19,14 @@ function c74845897.tg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -19,14 +19,14 @@ function c74845897.tg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c74845897.op(e,tp,eg,ep,ev,re,r,rp) function c74845897.op(e,tp,eg,ep,ev,re,r,rp)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
local tg=Duel.GetMatchingGroup(tp,c74845897.filter,tp,LOCATION_GRAVE,0,nil,e,tp) local tg=Duel.GetMatchingGroup(c74845897.filter,tp,LOCATION_GRAVE,0,nil,e,tp)
if ft<=0 or (Duel.IsPlayerAffectedByEffect(tp,59822133) and tg:GetCount()>1 and ft>1) then return end if ft<=0 or (Duel.IsPlayerAffectedByEffect(tp,59822133) and tg:GetCount()>1 and ft>1) then return end
local g=nil local g=nil
if tg:Getcount()>ft then if tg:GetCount()>ft then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
g=tg:Select(tp,ft,ft,nil) g=tg:Select(tp,ft,ft,nil)
else else
g=tg:Clone() g=tg
end end
if g:GetCount()>0 then if g:GetCount()>0 then
local fid=e:GetHandler():GetFieldID() local fid=e:GetHandler():GetFieldID()
......
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