Commit e31f9e00 authored by POLYMER's avatar POLYMER

fix

parent 7fa810c6
...@@ -105,7 +105,9 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -105,7 +105,9 @@ function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
--local cn=_G["c"..code] --local cn=_G["c"..code]
local con=tc.condition3 local con=tc.condition3
local op=tc.operation3 local op=tc.operation3
if con and op and con(e,tp,eg,ep,ev,re,r,rp) then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end local ft=0
if tc:GetOriginalCode()==11451412 then ft=1 end
if con and op and con(e,tp,eg,ep,ev,re,r,rp) then return Duel.GetLocationCount(tp,LOCATION_MZONE)>ft and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end
end end
return false return false
end end
......
...@@ -51,8 +51,8 @@ function cm.spsfilter(c,tp) ...@@ -51,8 +51,8 @@ function cm.spsfilter(c,tp)
end end
function cm.spscon(e,c) function cm.spscon(e,c)
if c==nil then return true end if c==nil then return true end
local cg=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_GRAVE,0,nil)
local tp=c:GetControler() local tp=c:GetControler()
local cg=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_GRAVE,0,nil)
return cg:GetClassCount(Card.GetCode)==cg:GetCount() and Duel.IsExistingMatchingCard(cm.spsfilter,tp,0,LOCATION_MZONE,1,nil,tp) return cg:GetClassCount(Card.GetCode)==cg:GetCount() and Duel.IsExistingMatchingCard(cm.spsfilter,tp,0,LOCATION_MZONE,1,nil,tp)
end end
function cm.spsop(e,tp,eg,ep,ev,re,r,rp,c) function cm.spsop(e,tp,eg,ep,ev,re,r,rp,c)
...@@ -65,8 +65,8 @@ function cm.spsfilter1(c,tp) ...@@ -65,8 +65,8 @@ function cm.spsfilter1(c,tp)
end end
function cm.spscon1(e,c) function cm.spscon1(e,c)
if c==nil then return true end if c==nil then return true end
local cg=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_GRAVE,0,nil)
local tp=c:GetControler() local tp=c:GetControler()
local cg=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_GRAVE,0,nil)
return cg:GetClassCount(Card.GetCode)==cg:GetCount() and Duel.IsExistingMatchingCard(cm.spsfilter1,tp,LOCATION_MZONE,0,1,nil,tp) return cg:GetClassCount(Card.GetCode)==cg:GetCount() and Duel.IsExistingMatchingCard(cm.spsfilter1,tp,LOCATION_MZONE,0,1,nil,tp)
end end
function cm.spsop1(e,tp,eg,ep,ev,re,r,rp,c) function cm.spsop1(e,tp,eg,ep,ev,re,r,rp,c)
......
...@@ -37,7 +37,7 @@ function cm.initial_effect(c) ...@@ -37,7 +37,7 @@ function cm.initial_effect(c)
end end
end end
function cm.checkop(e,tp,eg,ep,ev,re,r,rp) function cm.checkop(e,tp,eg,ep,ev,re,r,rp)
if eg:IsExists(function(c,re)return c:IsReason(REASON_COST) and re and re:IsActivated()end,1,nil,re) then Duel.RegisterFlagEffect(0,m,0,0,0) end if eg:IsExists(function(c,re)return c:IsReason(REASON_COST) and re and re:IsActivated()end,1,nil,re) then Duel.RegisterFlagEffect(0,m,RESET_CHAIN,0,0) end
end end
function cm.trcon(e,tp,eg,ep,ev,re,r,rp) function cm.trcon(e,tp,eg,ep,ev,re,r,rp)
local ex2,g2,gc2,dp2,dv2=Duel.GetOperationInfo(ev,CATEGORY_SPECIAL_SUMMON) local ex2,g2,gc2,dp2,dv2=Duel.GetOperationInfo(ev,CATEGORY_SPECIAL_SUMMON)
......
...@@ -45,7 +45,7 @@ function c98920312.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -45,7 +45,7 @@ function c98920312.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO) return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c98920312.spfilter(c,e,tp) function c98920312.spfilter(c,e,tp)
return c:IsType(TYPE_TUNER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP) return c:IsRace(RACE_CYBERSE) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP)
end end
function c98920312.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c98920312.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c98920312.spfilter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c98920312.spfilter(chkc,e,tp) 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