Commit 1211158f authored by POLYMER's avatar POLYMER

fix

parent caab6bc3
...@@ -132,10 +132,12 @@ function cm.repop(e,tp,eg,ep,ev,re,r,rp) ...@@ -132,10 +132,12 @@ function cm.repop(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end end
local turne=c[c] local turne=c[c]
if turne then if turne and aux.GetValueType(turne)=="Effect" then
local op=turne:GetOperation() local op=turne:GetOperation()
if aux.GetValueType(op)=="function" then
op(turne,turne:GetOwnerPlayer(),nil,0,0,0,0,0) op(turne,turne:GetOwnerPlayer(),nil,0,0,0,0,0)
end end
end
pnfl_desreplace=false pnfl_desreplace=false
end end
function cm.confilter(c) function cm.confilter(c)
......
...@@ -53,8 +53,8 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -53,8 +53,8 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function s.spop(e,tp,eg,ep,ev,re,r,rp) function s.spop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and Duel.GetLocationCountFromEx(tp,tp,nil,tc)>0 then if tc:IsRelateToEffect(e) and Duel.GetLocationCountFromEx(tp,tp,nil,tc)>0 and Duel.SpecialSummon(tc,SUMMON_TYPE_SYNCHRO,tp,tp,false,false,POS_FACEUP)>0 then
Duel.SpecialSummon(tc,SUMMON_TYPE_SYNCHRO,tp,tp,false,false,POS_FACEUP) tc:CompleteProcedure()
end end
end end
function s.ctfilter(c) function s.ctfilter(c)
......
...@@ -23,7 +23,7 @@ function VHisc_ESP.spcon(e,c) ...@@ -23,7 +23,7 @@ function VHisc_ESP.spcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local g=Duel.GetMatchingGroup(VHisc_ESP.spfilter,tp,LOCATION_REMOVED,0,nil) local g=Duel.GetMatchingGroup(VHisc_ESP.spfilter,tp,LOCATION_REMOVED,0,nil)
return g:GetCount()>0 and (c:IsLocation(LOCATION_HAND+LOCATION_GRAVE) or (VHisc_CardType==222 and c:IsLocation(LOCATION_DECK) and Duel.GetFlagEffect(tp,33201550)==0)) return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and g:GetCount()>0 and (c:IsLocation(LOCATION_HAND+LOCATION_GRAVE) or (VHisc_CardType==222 and c:IsLocation(LOCATION_DECK) and Duel.GetFlagEffect(tp,33201550)==0))
end end
function VHisc_ESP.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c) function VHisc_ESP.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
local g=Duel.GetMatchingGroup(VHisc_ESP.spfilter,tp,LOCATION_REMOVED,0,nil) local g=Duel.GetMatchingGroup(VHisc_ESP.spfilter,tp,LOCATION_REMOVED,0,nil)
......
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