Commit a62c672b authored by Nemo Ma's avatar Nemo Ma

fix

parent fcd3a57a
--救世棘龙
function c10150077.initial_effect(c)
aux.AddMaterialCodeList(c,21159309,73580471)
--synchro summon
aux.AddSynchroMixProcedure(c,c10150077.mfilter1,c10150077.mfilter2,nil,aux.NonTuner(nil),1,1)
c:EnableReviveLimit()
......@@ -36,6 +37,7 @@ function c10150077.initial_effect(c)
e3:SetOperation(c10150077.spop)
c:RegisterEffect(e3)
end
c10150077.material_type=TYPE_SYNCHRO
function c10150077.spfilter(c,e,tp)
return c:IsCode(73580471) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
......
--救世工具龙
function c10150078.initial_effect(c)
aux.AddMaterialCodeList(c,21159309,2403771)
--synchro summon
aux.AddSynchroMixProcedure(c,c10150078.mfilter1,c10150078.mfilter2,nil,aux.NonTuner(nil),1,1)
c:EnableReviveLimit()
......@@ -47,6 +48,7 @@ function c10150078.initial_effect(c)
e4:SetOperation(c10150078.spop2)
c:RegisterEffect(e4)
end
c10150078.material_type=TYPE_SYNCHRO
function c10150078.spfilter(c,e,tp)
return c:IsCode(2403771) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
......
--救世妖精龙
function c10150079.initial_effect(c)
aux.AddMaterialCodeList(c,21159309,25862681)
--synchro summon
aux.AddSynchroMixProcedure(c,c10150079.mfilter1,c10150079.mfilter2,nil,aux.NonTuner(nil),1,1)
c:EnableReviveLimit()
......@@ -36,6 +37,7 @@ function c10150079.initial_effect(c)
e3:SetOperation(c10150079.spop)
c:RegisterEffect(e3)
end
c10150079.material_type=TYPE_SYNCHRO
function c10150079.spfilter(c,e,tp)
return c:IsCode(25862681) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
......
......@@ -85,7 +85,7 @@ function c117837139.sumfilter(c,e,tp)
end
function c117837139.sumtg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return Duel.IsPlayerCanSpecialSummonCount(tp,2) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.GetLocationCountFromEx(1-tp,tp,nil,c)>0 and Duel.IsExistingMatchingCard(c117837139.sumfilter,tp,LOCATION_HAND,0,1,nil,e,tp) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_LINK,1-tp,true,false) end
if chk==0 then return not Duel.IsPlayerAffectedByEffect(tp,59822133) and Duel.IsPlayerCanSpecialSummonCount(tp,2) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.GetLocationCountFromEx(1-tp,tp,nil,c)>0 and Duel.IsExistingMatchingCard(c117837139.sumfilter,tp,LOCATION_HAND,0,1,nil,e,tp) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_LINK,1-tp,true,false) end
end
function c117837139.sumop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
......@@ -43,7 +43,7 @@ function c118776531.initial_effect(c)
end
function c118776531.sumcon(e,tp,eg,ep,ev,re,r,rp)
local ph=Duel.GetCurrentPhase()
return ph==PHASE_MAIN1 or ph==PHASE_MAIN2
return ph==PHASE_MAIN1 or ph==PHASE_MAIN2 or Duel.GetTurnPlayer()~=tp
end
function c118776531.sumfilter(c)
return c:IsSetCard(0xf9) and c:IsSummonable(true,nil,1)
......
--真龙战士 点火烈·炽热
function c12249903.initial_effect(c)
--summon with s/t
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(12249903,0))
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_SUMMON_PROC)
e1:SetCondition(c12249903.otcon)
e1:SetOperation(c12249903.otop)
e1:SetValue(SUMMON_TYPE_ADVANCE)
c:RegisterEffect(e1)
--search
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(12249903,1))
e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_CHAINING)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1)
e2:SetCondition(c12249903.thcon)
e2:SetTarget(c12249903.thtg)
e2:SetOperation(c12249903.thop)
c:RegisterEffect(e2)
--summon with s/t
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(12249903,0))
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_SUMMON_PROC)
e1:SetCondition(c12249903.otcon)
e1:SetOperation(c12249903.otop)
e1:SetValue(SUMMON_TYPE_ADVANCE)
c:RegisterEffect(e1)
--search
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(12249903,1))
e2:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_CHAINING)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1)
e2:SetCondition(c12249903.thcon)
e2:SetTarget(c12249903.thtg)
e2:SetOperation(c12249903.thop)
c:RegisterEffect(e2)
end
function c12249903.otfilter(c)
return c:IsType(TYPE_CONTINUOUS) and c:IsReleasable()
return c:IsType(TYPE_CONTINUOUS) and c:IsReleasable()
end
function c12249903.otcon(e,c,minc)
if c==nil then return true end
local tp=c:GetControler()
return c:GetLevel()>4 and minc<=1 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c12249903.otfilter,tp,LOCATION_SZONE,0,1,nil)
if c==nil then return true end
local tp=c:GetControler()
return c:GetLevel()>4 and minc<=1 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c12249903.otfilter,tp,LOCATION_SZONE,0,1,nil)
end
function c12249903.otop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local sg=Duel.SelectMatchingCard(tp,c12249903.otfilter,tp,LOCATION_SZONE,0,1,1,nil)
c:SetMaterial(sg)
Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local sg=Duel.SelectMatchingCard(tp,c12249903.otfilter,tp,LOCATION_SZONE,0,1,1,nil)
c:SetMaterial(sg)
Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
end
function c12249903.thcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE and rp~=tp
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE and rp~=tp
end
function c12249903.thfilter(c,tp)
return c:IsSetCard(0xf9) and c:IsType(TYPE_CONTINUOUS) and c:IsType(TYPE_SPELL)
and (c:IsAbleToHand() or c:GetActivateEffect():IsActivatable(tp))
return c:IsSetCard(0xf9) and c:IsType(TYPE_CONTINUOUS) and c:IsType(TYPE_SPELL)
and (c:IsAbleToHand() or c:GetActivateEffect():IsActivatable(tp))
end
function c12249903.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c12249903.thfilter,tp,LOCATION_DECK,0,1,nil,tp) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
if chk==0 then return Duel.IsExistingMatchingCard(c12249903.thfilter,tp,LOCATION_DECK,0,1,nil,tp) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
function c12249903.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(12249903,3))
local g=Duel.SelectMatchingCard(tp,c12249903.thfilter,tp,LOCATION_DECK,0,1,1,nil,tp)
local tc=g:GetFirst()
if tc then
local b1=tc:IsAbleToHand()
local b2=tc:GetActivateEffect():IsActivatable(tp)
if b1 and (Duel.GetLocationCount(tp,LOCATION_SZONE)<=0 or not b2 or Duel.SelectYesNo(tp,aux.Stringid(12249903,3))) then
Duel.SendtoHand(tc,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,tc)
else
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
local te=tc:GetActivateEffect()
local tep=tc:GetControler()
local cost=te:GetCost()
if cost then cost(te,tep,eg,ep,ev,re,r,rp,1) end
Duel.RaiseEvent(tc,EVENT_CHAIN_SOLVED,te,0,tp,tp,Duel.GetCurrentChain())
end
end
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(12249903,3))
local g=Duel.SelectMatchingCard(tp,c12249903.thfilter,tp,LOCATION_DECK,0,1,1,nil,tp)
local tc=g:GetFirst()
if tc then
local b1=tc:IsAbleToHand()
local b2=tc:GetActivateEffect():IsActivatable(tp)
if b1 and (Duel.GetLocationCount(tp,LOCATION_SZONE)<=0 or not b2 or Duel.SelectYesNo(tp,aux.Stringid(12249903,2))) then
Duel.SendtoHand(tc,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,tc)
else
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
local te=tc:GetActivateEffect()
local tep=tc:GetControler()
local cost=te:GetCost()
if cost then cost(te,tep,eg,ep,ev,re,r,rp,1) end
Duel.RaiseEvent(tc,EVENT_CHAIN_SOLVED,te,0,tp,tp,Duel.GetCurrentChain())
end
end
end
......@@ -2,6 +2,7 @@
local m=14000034
local cm=_G["c"..m]
function cm.initial_effect(c)
aux.AddMaterialCodeList(c,14000021)
--synchro summon
aux.AddSynchroProcedure(c,nil,aux.FilterBoolFunction(Card.IsCode,14000021),1,1)
c:EnableReviveLimit()
......
......@@ -2,6 +2,7 @@ local m=15000917
local cm=_G["c"..m]
cm.name="传说未来圣罚 圣修暗凯·无限命运"
function cm.initial_effect(c)
aux.AddMaterialCodeList(c,15000907)
c:EnableReviveLimit()
--pendulum summon
aux.EnablePendulumAttribute(c,false)
......@@ -61,6 +62,7 @@ function cm.initial_effect(c)
e7:SetOperation(cm.atop)
c:RegisterEffect(e7)
end
cm.material_type=TYPE_SYNCHRO
function cm.matfilter1(c,syncard)
return c:IsSynchroType(TYPE_TUNER) or (c:IsSynchroType(TYPE_PENDULUM) and c:IsSetCard(0x5f3e))
end
......
--无明三段突
function c22020730.initial_effect(c)
aux.AddMaterialCodeList(c,22020690)
--synchro summon
aux.AddSynchroProcedure(c,nil,aux.FilterBoolFunction(Card.IsCode,22020690),1,1)
c:EnableReviveLimit()
......@@ -50,6 +51,7 @@ function c22020730.initial_effect(c)
e7:SetOperation(c22020730.rpop)
c:RegisterEffect(e7)
end
c22020730.material_type=TYPE_SYNCHRO
function c22020730.sumsuc(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
......
--不灭之诚
function c22020740.initial_effect(c)
aux.AddMaterialCodeList(c,22020720)
--synchro summon
aux.AddSynchroProcedure(c,nil,aux.FilterBoolFunction(Card.IsCode,22020720),1,1)
c:EnableReviveLimit()
......@@ -62,6 +63,7 @@ function c22020740.initial_effect(c)
e7:SetOperation(c22020740.rpop)
c:RegisterEffect(e7)
end
c22020740.material_type=TYPE_SYNCHRO
function c22020740.condition(e,tp,eg,ep,ev,re,r,rp)
local tp=e:GetHandlerPlayer()
return Duel.GetLP(tp)<Duel.GetLP(1-tp)
......
--人理世境 两仪式
function c22021920.initial_effect(c)
aux.AddMaterialCodeList(c,22021900)
--synchro summon
aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsAttribute,ATTRIBUTE_LIGHT),aux.FilterBoolFunction(Card.IsCode,22021900),1,1)
c:EnableReviveLimit()
......
--黄金骑士 坂田金时
function c22022330.initial_effect(c)
aux.AddMaterialCodeList(c,22022310)
--synchro summon
aux.AddSynchroProcedure(c,nil,aux.FilterBoolFunction(Card.IsCode,22022310),1,1)
c:EnableReviveLimit()
......
--星尘龙·天才
function c22070190.initial_effect(c)
aux.AddMaterialCodeList(c,44508094)
--synchro summon
aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsSynchroType,TYPE_SYNCHRO),aux.FilterBoolFunction(Card.IsCode,44508094),1,1)
c:EnableReviveLimit()
......@@ -33,6 +34,7 @@ function c22070190.initial_effect(c)
e3:SetOperation(c22070190.atop)
c:RegisterEffect(e3)
end
c22070190.material_type=TYPE_SYNCHRO
function c22070190.eftg(e,c)
return c:IsType(TYPE_SYNCHRO) and c:IsFaceup()
end
......
......@@ -2,6 +2,7 @@
local m=25800075
local cm=_G["c"..m]
function cm.initial_effect(c)
aux.AddMaterialCodeList(c,25800156,25800037,25800010)
--fusion material
c:EnableReviveLimit()
--synchro summon
......
--PSY骨架王·Σ
function c30002025.initial_effect(c)
aux.AddMaterialCodeList(c,49036338)
--synchro summon
aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsSetCard,0xc1),aux.FilterBoolFunction(Card.IsCode,49036338),1,1)
c:EnableReviveLimit()
......
......@@ -2,6 +2,7 @@ local m=31400097
local cm=_G["c"..m]
cm.name="云魔物-三角气流"
function cm.initial_effect(c)
aux.AddMaterialCodeList(c,80825553)
c:EnableReviveLimit()
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
......
......@@ -81,7 +81,7 @@ end
function cm.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end
if chk==0 then return Duel.IsExistingTarget(cm.tdfilter,tp,LOCATION_GRAVE,0,1,nil)
and Duel.IsExistingTarget(Card.IsAbleToDeck,tp,0,LOCATION_ONFIELD,2,nil) end
and Duel.IsExistingTarget(Card.IsAbleToDeck,tp,0,LOCATION_ONFIELD,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g1=Duel.SelectTarget(tp,cm.tdfilter,tp,LOCATION_GRAVE,0,1,1,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
......@@ -124,4 +124,4 @@ function cm.disop(e,tp,eg,ep,ev,re,r,rp)
if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT)
end
end
\ No newline at end of file
end
......@@ -139,7 +139,6 @@ function c4058.initial_effect(c)
e15:SetCategory(CATEGORY_SPECIAL_SUMMON)
e15:SetType(EFFECT_TYPE_ACTIVATE)
e15:SetCode(EVENT_DESTROYED)
e15:SetCountLimit(1,16067089)
e15:SetRange(LOCATION_DECK)
e15:SetCondition(c4058.condition4)
e15:SetTarget(c4058.target4)
......@@ -155,7 +154,7 @@ function c4058.initial_effect(c)
local e17=Effect.CreateEffect(c)
e17:SetType(EFFECT_TYPE_FIELD)
e17:SetCode(EFFECT_ACTIVATE_COST)
e17:SetRange(LOCATION_DECK)
e17:SetRange(LOCATION_HAND+LOCATION_DECK)
e17:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_CANNOT_DISABLE)
e17:SetTargetRange(1,0)
e17:SetTarget(c4058.actarget)
......@@ -163,7 +162,7 @@ function c4058.initial_effect(c)
local e18=Effect.CreateEffect(c)
e18:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_GRANT)
e18:SetRange(LOCATION_ONFIELD)
e18:SetTargetRange(LOCATION_DECK,0)
e18:SetTargetRange(LOCATION_HAND+LOCATION_DECK,0)
e18:SetTarget(aux.TargetBoolFunction(Card.IsCode,93217231,80678380,16067089,1683982))
e18:SetLabelObject(e17)
c:RegisterEffect(e18)
......@@ -173,7 +172,6 @@ function c4058.initial_effect(c)
e19:SetType(EFFECT_TYPE_ACTIVATE)
e19:SetCode(EVENT_CHAINING)
e19:SetRange(LOCATION_DECK)
e19:SetCountLimit(1,80678380)
e19:SetCondition(c4058.condition5)
e19:SetCost(c4058.cost5)
e19:SetTarget(c4058.target5)
......@@ -192,7 +190,6 @@ function c4058.initial_effect(c)
e21:SetType(EFFECT_TYPE_ACTIVATE)
e21:SetCode(EVENT_FREE_CHAIN)
e21:SetRange(LOCATION_DECK)
e21:SetCountLimit(1,93217231)
e21:SetTarget(c4058.target6)
e21:SetOperation(c4058.activate6)
local e22=Effect.CreateEffect(c)
......@@ -206,7 +203,6 @@ function c4058.initial_effect(c)
e27:SetType(EFFECT_TYPE_ACTIVATE)
e27:SetCode(EVENT_FREE_CHAIN)
e27:SetRange(LOCATION_DECK)
e27:SetCountLimit(1,16839820)
local e28=Effect.CreateEffect(c)
e28:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_GRANT)
e28:SetRange(LOCATION_ONFIELD)
......@@ -429,9 +425,9 @@ function c4058.actarget(e,te,tp)
end
function c4058.costop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
Duel.MoveToField(c,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
if c:IsLocation(LOCATION_DECK) then Duel.MoveToField(c,tp,tp,LOCATION_SZONE,POS_FACEUP,true) end
--oath effects
local e1=Effect.CreateEffect(e:GetHandler())
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_OATH)
e1:SetCode(EFFECT_CANNOT_ACTIVATE)
......
......@@ -14,7 +14,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e1)
end
function cm.filter(c)
return c:IsType(TYPE_RITUAL) and c:IsAbleToHand()
return c:IsType(TYPE_RITUAL) and c:IsAbleToHand() and c:IsSetCard(0x621)
end
function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_DECK,0,2,nil) end
......
--神代丰的铁骑 暴风铃鹿
function c64800103.initial_effect(c)
aux.AddMaterialCodeList(c,64800097)
--synchro summon
c:EnableReviveLimit()
aux.AddSynchroMixProcedure(c,c64800103.matfilter1,nil,nil,c64800103.matfilter2,1,99)
......
--觊觎封缄的魔主 莉克修玛
function c67200271.initial_effect(c)
aux.AddMaterialCodeList(c,67200270)
c:EnableReviveLimit()
--pendulum
aux.EnablePendulumAttribute(c,false)
......
--械龙铠·多线程数据流
function c75124535.initial_effect(c)
aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsRace,RACE_CYBERSE),aux.FilterBoolFunction(Card.IsCode,75124533),1,1);
c:EnableReviveLimit();
aux.AddMaterialCodeList(c,75124533)
aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsRace,RACE_CYBERSE),aux.FilterBoolFunction(Card.IsCode,75124533),1,1)
c:EnableReviveLimit()
--special summon
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(75124535,0))
......
--烈星壳·炎魔
function c79029552.initial_effect(c)
aux.AddMaterialCodeList(c,85475641)
--synchro summon
aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsCode,85475641),aux.NonTuner(Card.IsAttribute,ATTRIBUTE_FIRE),1)
c:EnableReviveLimit()
......
......@@ -2,6 +2,7 @@
local m=93601014
local cm=_G["c"..m]
function cm.initial_effect(c)
aux.AddMaterialCodeList(c,99070951)
c:SetSPSummonOnce(m)
--synchro summon
aux.AddSynchroProcedure(c,aux.FilterBoolFunction(Card.IsCode,99070951),aux.NonTuner(nil),1)
......
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