Commit 48f9e20b authored by REIKAI's avatar REIKAI 💬

rep 3.11

parent c437920a
No preview for this file type
expansions/pics/65030079.jpg

111 KB | W: | H:

expansions/pics/65030079.jpg

130 KB | W: | H:

expansions/pics/65030079.jpg
expansions/pics/65030079.jpg
expansions/pics/65030079.jpg
expansions/pics/65030079.jpg
  • 2-up
  • Swipe
  • Onion skin
...@@ -42,7 +42,7 @@ end ...@@ -42,7 +42,7 @@ end
function cm.spcon(e,c) function cm.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()
return Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==0 or Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_MZONE,0,1,nil) return Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==0 or Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_MZONE,0,1,nil) and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0
end end
function cm.lvop(e,tp,eg,ep,ev,re,r,rp) function cm.lvop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -21,7 +21,7 @@ function cm.initial_effect(c) ...@@ -21,7 +21,7 @@ function cm.initial_effect(c)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_FLIP) e2:SetCode(EVENT_FLIP)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET)
e2:SetCountLimit(1,m) e2:SetCountLimit(1,m)
e2:SetTarget(cm.target) e2:SetTarget(cm.target)
e2:SetOperation(cm.operation) e2:SetOperation(cm.operation)
......
...@@ -168,7 +168,7 @@ function cm.TojiEquip(ec,e,tp,eg,ep,ev,re,r,rp) ...@@ -168,7 +168,7 @@ function cm.TojiEquip(ec,e,tp,eg,ep,ev,re,r,rp)
e3:SetRange(LOCATION_SZONE) e3:SetRange(LOCATION_SZONE)
e3:SetLabelObject(ec) e3:SetLabelObject(ec)
e3:SetCondition(cm.con3) e3:SetCondition(cm.con3)
e3:SetCountLimit(2,m+10001) e3:SetCountLimit(1)
e3:SetOperation(cm.op3) e3:SetOperation(cm.op3)
token:RegisterEffect(e3) token:RegisterEffect(e3)
return true return true
......
...@@ -146,6 +146,7 @@ function cm.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -146,6 +146,7 @@ function cm.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,0,1,0,0) Duel.SetOperationInfo(0,CATEGORY_REMOVE,0,1,0,0)
end end
function cm.rmop(e,tp,eg,ep,ev,re,r,rp) function cm.rmop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local bg=Duel.SelectMatchingCard(tp,cm.rmfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil) local bg=Duel.SelectMatchingCard(tp,cm.rmfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil)
local tc=bg:GetFirst() local tc=bg:GetFirst()
if tc then if tc then
......
...@@ -54,6 +54,6 @@ function cm.op3(e,tp,eg,ep,ev,re,r,rp) ...@@ -54,6 +54,6 @@ function cm.op3(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and tc:IsFaceup() then if tc:IsRelateToEffect(e) and tc:IsFaceup() then
tc:AddCounter(0x1b80,1) tc:AddCounter(0x1b80,2)
end end
end end
\ No newline at end of file
...@@ -65,6 +65,6 @@ function cm.op3(e,tp,eg,ep,ev,re,r,rp) ...@@ -65,6 +65,6 @@ function cm.op3(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and tc:IsFaceup() then if tc:IsRelateToEffect(e) and tc:IsFaceup() then
tc:AddCounter(0x1b80,1) tc:AddCounter(0x1b80,2)
end end
end end
\ No newline at end of file
...@@ -92,21 +92,19 @@ function c50218150.negop(e,tp,eg,ep,ev,re,r,rp) ...@@ -92,21 +92,19 @@ function c50218150.negop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
end end
function c50218150.thfilter(c) function c50218150.filter(c,code)
return c:IsCode(50218139,50218150) and c:IsFaceup() and c:IsAbleToHand() return c:IsCode(code) and c:IsAbleToHand()
end end
function c50218150.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c50218150.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return true end if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,2,0,0) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,2,0,0)
end end
function c50218150.thop(e,tp,eg,ep,ev,re,r,rp) function c50218150.thop(e,tp,eg,ep,ev,re,r,rp)
if Duel.IsExistingTarget(c50218150.thfilter,tp,LOCATION_REMOVED,0,2,nil) local t1=Duel.GetFirstMatchingCard(c50218150.filter,tp,LOCATION_REMOVED,0,nil,50218139)
then if not t1 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) local t2=Duel.GetFirstMatchingCard(c50218150.filter,tp,LOCATION_REMOVED,0,nil,50218140)
local g=Duel.SelectTarget(tp,c50218150.thfilter,tp,LOCATION_REMOVED,0,2,2,nil) if not t2 then return end
if g:GetCount()>0 then local g=Group.FromCards(t1,t2)
Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
end
end
end end
\ No newline at end of file
...@@ -10,6 +10,15 @@ function c67200608.initial_effect(c) ...@@ -10,6 +10,15 @@ function c67200608.initial_effect(c)
e1:SetCode(EFFECT_SPSUMMON_CONDITION) e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e1:SetValue(aux.ritlimit) e1:SetValue(aux.ritlimit)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--hyper pendulum splimit
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_FIELD)
e0:SetRange(LOCATION_PZONE)
e0:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e0:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_CANNOT_DISABLE)
e0:SetTargetRange(1,0)
e0:SetTarget(c67200608.splimit)
c:RegisterEffect(e0)
--token --token
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(67200608,1)) e2:SetDescription(aux.Stringid(67200608,1))
...@@ -37,6 +46,10 @@ function c67200608.initial_effect(c) ...@@ -37,6 +46,10 @@ function c67200608.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
-- --
function c67200608.splimit(e,c,tp,sumtp,sumpos)
return bit.band(sumtp,SUMMON_TYPE_PENDULUM)==SUMMON_TYPE_PENDULUM
end
--
function c67200608.cfilter2(c,tp) function c67200608.cfilter2(c,tp)
return c:GetSummonPlayer()==tp and c:IsSetCard(0x677) and c:IsFaceup() and c:IsSummonType(SUMMON_TYPE_RITUAL) return c:GetSummonPlayer()==tp and c:IsSetCard(0x677) and c:IsFaceup() and c:IsSummonType(SUMMON_TYPE_RITUAL)
end end
......
...@@ -24,11 +24,11 @@ end ...@@ -24,11 +24,11 @@ end
function c67210003.condition(e,tp,eg,ep,ev,re,r,rp) function c67210003.condition(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c67210003.filter,1,nil,nil,tp) return eg:IsExists(c67210003.filter,1,nil,nil,tp)
end end
function c67210003.unfilter(c,e,tp) function c67210003.unfilter(c)
return c:GetSummonPlayer()==1-tp and not c:GetSequence()<=4 return c:GetSequence()>4
end end
function c67210003.target(e,tp,eg,ep,ev,re,r,rp,chk) function c67210003.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not eg:IsExists(c67210003.unfilter,1,nil,nil,tp) end if chk==0 then return not eg:IsExists(c67210003.unfilter,1,nil) end
end end
function c67210003.seqfilter(c,seq) function c67210003.seqfilter(c,seq)
return c:GetSequence()==seq return c:GetSequence()==seq
......
--永欲心魔结合 杂念凭依福音
function c88881680.initial_effect(c)
--Activate
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_FUSION_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e1:SetTarget(c88881680.target)
e1:SetOperation(c88881680.activate)
c:RegisterEffect(e1)
end
function c88881680.filter0(c,e,tp)
return c:IsOnField() and Duel.IsExistingMatchingCard(c88881680.spfilter2,tp,LOCATION_MZONE,0,1,c,e,tp,c)
end
function c88881680.filter1(c,e,tp)
return c:IsOnField() and not c:IsImmuneToEffect(e)
end
function c88881680.spfilter2(c,e,tp,mc)
local chkf=tp
if not c:IsOnField() then return false end
local e1=nil
if c:IsSetCard(0x890) then
--fusion substitute
e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_FUSION_SUBSTITUTE)
e1:SetCondition(c88881680.subcon)
c:RegisterEffect(e1,true)
end
local mg1=Duel.GetFusionMaterial(tp):Filter(Card.IsOnField,nil)
local res=Duel.IsExistingMatchingCard(c88881680.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg1,nil,chkf)
if e1 then e1:Reset() end
if not res then
local ce=Duel.GetChainMaterial(tp)
if ce~=nil then
local fgroup=ce:GetTarget()
local mg2=fgroup(ce,e,tp)
local mf=ce:GetValue()
res=Duel.IsExistingMatchingCard(c88881680.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg2,mf,chkf)
end
end
return res
end
function c88881680.subcon(e)
return e:GetHandler():IsLocation(LOCATION_HAND+LOCATION_ONFIELD+LOCATION_GRAVE)
end
function c88881680.filter2(c,e,tp,m,f,chkf)
return c:IsType(TYPE_FUSION) and (not f or f(c))
and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_FUSION,tp,false,false) and c:CheckFusionMaterial(m,nil,chkf)
end
function c88881680.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then
local chkf=tp
local mg1=Duel.GetFusionMaterial(tp):Filter(c88881680.filter0,nil,e,tp)
return #mg1>0
end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
end
function c88881680.activate(e,tp,eg,ep,ev,re,r,rp)
local chkf=tp
local mg1=Duel.GetFusionMaterial(tp):Filter(c88881680.filter1,nil,e,tp)
local mg3=mg1:Filter(Card.IsSetCard,nil,0x890)
local mg4=Group.CreateGroup()
local tc=mg3:GetFirst()
while tc do
--fusion substitute
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_FUSION_SUBSTITUTE)
e1:SetCondition(c88881680.subcon)
e1:SetReset(RESET_CHAIN)
tc:RegisterEffect(e1,true)
mg4:AddCard(tc)
tc=mg3:GetNext()
end
mg1:Merge(mg4)
local sg1=Duel.GetMatchingGroup(c88881680.filter2,tp,LOCATION_EXTRA,0,nil,e,tp,mg1,nil,chkf)
local mg2=nil
local sg2=nil
local ce=Duel.GetChainMaterial(tp)
if ce~=nil then
local fgroup=ce:GetTarget()
mg2=fgroup(ce,e,tp)
local mf=ce:GetValue()
sg2=Duel.GetMatchingGroup(c88881680.filter2,tp,LOCATION_EXTRA,0,nil,e,tp,mg2,mf,chkf)
end
if sg1:GetCount()>0 or (sg2~=nil and sg2:GetCount()>0) then
local sg=sg1:Clone()
if sg2 then sg:Merge(sg2) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local tg=sg:Select(tp,1,1,nil)
local tc=tg:GetFirst()
if sg1:IsContains(tc) and (sg2==nil or not sg2:IsContains(tc) or not Duel.SelectYesNo(tp,ce:GetDescription())) then
local mat1=Duel.SelectFusionMaterial(tp,tc,mg1,nil,chkf)
tc:SetMaterial(mat1)
Duel.SendtoGrave(mat1,REASON_EFFECT+REASON_MATERIAL+REASON_FUSION)
Duel.BreakEffect()
Duel.SpecialSummon(tc,SUMMON_TYPE_FUSION,tp,tp,false,false,POS_FACEUP)
else
local mat2=Duel.SelectFusionMaterial(tp,tc,mg2,nil,chkf)
local fop=ce:GetOperation()
fop(ce,e,tp,tc,mat2)
end
tc:CompleteProcedure()
tc:RegisterFlagEffect(88881680,RESET_EVENT+RESETS_STANDARD,0,1,fid)
end
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