Commit 84f5fb10 authored by wind2009's avatar wind2009

修复先行卡setcode未更新的问题

parent 5ef193dd
...@@ -43,7 +43,7 @@ function s.thcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -43,7 +43,7 @@ function s.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_RITUAL) return e:GetHandler():IsSummonType(SUMMON_TYPE_RITUAL)
end end
function s.thfilter(c) function s.thfilter(c)
return (c:IsSetCard(0x2a6) or (c:IsRace(RACE_DRAGON+RACE_WARRIOR) and c:IsType(TYPE_RITUAL))) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() return (c:IsSetCard(0x1a6) or (c:IsRace(RACE_DRAGON+RACE_WARRIOR) and c:IsType(TYPE_RITUAL))) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end end
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil) end
......
...@@ -35,7 +35,7 @@ function s.initial_effect(c) ...@@ -35,7 +35,7 @@ function s.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function s.stfilter(c) function s.stfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsSetCard(0x2a8) and c:IsSSetable() return c:IsType(TYPE_MONSTER) and c:IsSetCard(0x1a8) and c:IsSSetable()
and c.set_as_spell and (not c:IsLocation(LOCATION_MZONE) or c:IsFaceup()) and c.set_as_spell and (not c:IsLocation(LOCATION_MZONE) or c:IsFaceup())
end end
function s.sttg(e,tp,eg,ep,ev,re,r,rp,chk) function s.sttg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -36,7 +36,7 @@ function s.initial_effect(c) ...@@ -36,7 +36,7 @@ function s.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function s.pfilter(c,tp) function s.pfilter(c,tp)
return c:IsType(TYPE_CONTINUOUS) and c:IsSetCard(0x2a6) return c:IsType(TYPE_CONTINUOUS) and c:IsSetCard(0x1a6)
and not c:IsForbidden() and c:CheckUniqueOnField(tp) and not c:IsForbidden() and c:CheckUniqueOnField(tp)
end end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk) function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
local s,id,o=GetID() local s,id,o=GetID()
function s.initial_effect(c) function s.initial_effect(c)
aux.AddCodeList(c,78371393) aux.AddCodeList(c,78371393)
aux.AddSetNameMonsterList(c,0x2a4) aux.AddSetNameMonsterList(c,0x1a5)
c:SetSPSummonOnce(id) c:SetSPSummonOnce(id)
local e0=aux.AddThisCardInGraveAlreadyCheck(c) local e0=aux.AddThisCardInGraveAlreadyCheck(c)
--spsummon --spsummon
...@@ -42,7 +42,7 @@ function s.initial_effect(c) ...@@ -42,7 +42,7 @@ function s.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function s.cfilter(c) function s.cfilter(c)
return c:IsSetCard(0x2a4) and c:IsType(TYPE_MONSTER) and not c:IsPublic() return c:IsSetCard(0x1a5) and c:IsType(TYPE_MONSTER) and not c:IsPublic()
end end
function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_HAND,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_HAND,0,1,nil) end
...@@ -73,7 +73,7 @@ end ...@@ -73,7 +73,7 @@ end
function s.reccon(e,tp,eg,ep,ev,re,r,rp,chk) function s.reccon(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
local bc=c:GetBattleTarget() local bc=c:GetBattleTarget()
return bc and bc:IsFaceup() and bc:IsSetCard(0x2a4) return bc and bc:IsFaceup() and bc:IsSetCard(0x1a5)
end end
function s.rectg(e,tp,eg,ep,ev,re,r,rp,chk) function s.rectg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -5,7 +5,7 @@ function s.initial_effect(c) ...@@ -5,7 +5,7 @@ function s.initial_effect(c)
aux.AddCodeList(c,78371393) aux.AddCodeList(c,78371393)
c:EnableReviveLimit() c:EnableReviveLimit()
--material --material
aux.AddFusionProcFunFunRep(c,aux.FilterBoolFunction(Card.IsFusionSetCard,0x2a4),s.matfilter,1,63,true) aux.AddFusionProcFunFunRep(c,aux.FilterBoolFunction(Card.IsFusionSetCard,0x1a5),s.matfilter,1,63,true)
--damage --damage
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DAMAGE) e1:SetCategory(CATEGORY_DAMAGE)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
local s,id,o=GetID() local s,id,o=GetID()
function s.initial_effect(c) function s.initial_effect(c)
aux.AddCodeList(c,78371393) aux.AddCodeList(c,78371393)
aux.AddSetNameMonsterList(c,0x2a4) aux.AddSetNameMonsterList(c,0x1a5)
--spsummon --spsummon
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0)) e1:SetDescription(aux.Stringid(id,0))
...@@ -46,7 +46,7 @@ function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -46,7 +46,7 @@ function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Release(e:GetHandler(),REASON_COST) Duel.Release(e:GetHandler(),REASON_COST)
end end
function s.spfilter(c,e,tp) function s.spfilter(c,e,tp)
return c:IsSetCard(0x2a4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x1a5) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetMZoneCount(tp,e:GetHandler())>0 if chk==0 then return Duel.GetMZoneCount(tp,e:GetHandler())>0
...@@ -62,7 +62,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -62,7 +62,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function s.confilter(c) function s.confilter(c)
return c:IsFaceup() and c:IsSetCard(0x2a4) return c:IsFaceup() and c:IsSetCard(0x1a5)
end end
function s.chcon(e,tp,eg,ep,ev,re,r,rp) function s.chcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==1-tp and re:IsActiveType(TYPE_MONSTER) return Duel.GetTurnPlayer()==1-tp and re:IsActiveType(TYPE_MONSTER)
...@@ -73,7 +73,7 @@ function s.chcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -73,7 +73,7 @@ function s.chcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Release(e:GetHandler(),REASON_COST) Duel.Release(e:GetHandler(),REASON_COST)
end end
function s.repfilter(c) function s.repfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsSetCard(0x2a4) return c:IsType(TYPE_MONSTER) and c:IsSetCard(0x1a5)
end end
function s.chtg(e,tp,eg,ep,ev,re,r,rp,chk) function s.chtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.repfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(s.repfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
local s,id,o=GetID() local s,id,o=GetID()
function s.initial_effect(c) function s.initial_effect(c)
aux.AddCodeList(c,78371393) aux.AddCodeList(c,78371393)
aux.AddSetNameMonsterList(c,0x2a4) aux.AddSetNameMonsterList(c,0x1a5)
--Activate --Activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
...@@ -65,14 +65,14 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -65,14 +65,14 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function s.atkfilter(c) function s.atkfilter(c)
return c:IsFaceup() and c:IsSetCard(0x2a4) return c:IsFaceup() and c:IsSetCard(0x1a5)
end end
function s.atkcon(e) function s.atkcon(e)
return Duel.IsExistingMatchingCard(s.atkfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil) return Duel.IsExistingMatchingCard(s.atkfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil)
end end
function s.atklimit(e,c) function s.atklimit(e,c)
return c:IsFaceup() and c:IsSetCard(0x2a4) return c:IsFaceup() and c:IsSetCard(0x1a5)
end end
function s.reftg(e,c) function s.reftg(e,c)
return c:IsFaceup() and c:IsSetCard(0x2a4) return c:IsFaceup() and c:IsSetCard(0x1a5)
end end
\ No newline at end of file
...@@ -40,7 +40,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -40,7 +40,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2 return Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2
end end
function s.dfilter(c,e,tp,ft) function s.dfilter(c,e,tp,ft)
return c:IsSetCard(0x2a6) and c:IsType(TYPE_MONSTER) and (c:IsAbleToHand() or (ft>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false))) return c:IsSetCard(0x1a6) and c:IsType(TYPE_MONSTER) and (c:IsAbleToHand() or (ft>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false)))
end end
function s.tdfilter(c) function s.tdfilter(c)
return c:IsAbleToDeck() and c:IsType(TYPE_RITUAL) and ((c:IsRace(RACE_WARRIOR+RACE_DRAGON) and c:IsType(TYPE_MONSTER) and c:IsAttribute(ATTRIBUTE_LIGHT)) or c:IsType(TYPE_SPELL)) return c:IsAbleToDeck() and c:IsType(TYPE_RITUAL) and ((c:IsRace(RACE_WARRIOR+RACE_DRAGON) and c:IsType(TYPE_MONSTER) and c:IsAttribute(ATTRIBUTE_LIGHT)) or c:IsType(TYPE_SPELL))
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
local s,id,o=GetID() local s,id,o=GetID()
function s.initial_effect(c) function s.initial_effect(c)
aux.AddCodeList(c,78371393) aux.AddCodeList(c,78371393)
aux.AddSetNameMonsterList(c,0x2a4) aux.AddSetNameMonsterList(c,0x1a5)
--Activate --Activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
...@@ -38,7 +38,7 @@ function s.initial_effect(c) ...@@ -38,7 +38,7 @@ function s.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function s.spfilter(c,e,tp) function s.spfilter(c,e,tp)
return c:IsSetCard(0x2a4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x1a5) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.GetFlagEffect(tp,id)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetFlagEffect(tp,id)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
...@@ -128,7 +128,7 @@ function s.filter3(c,e) ...@@ -128,7 +128,7 @@ function s.filter3(c,e)
return c:IsOnField() and not c:IsImmuneToEffect(e) return c:IsOnField() and not c:IsImmuneToEffect(e)
end end
function s.fcheck(tp,sg,fc) function s.fcheck(tp,sg,fc)
return sg:IsExists(Card.IsSetCard,1,nil,0x2a4) return sg:IsExists(Card.IsSetCard,1,nil,0x1a5)
end end
function s.futg(e,tp,eg,ep,ev,re,r,rp,chk) function s.futg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then if chk==0 then
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
local s,id,o=GetID() local s,id,o=GetID()
function s.initial_effect(c) function s.initial_effect(c)
aux.AddCodeList(c,78371393) aux.AddCodeList(c,78371393)
aux.AddSetNameMonsterList(c,0x2a4) aux.AddSetNameMonsterList(c,0x1a5)
--Special Summon (from hand : itself) --Special Summon (from hand : itself)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0)) e1:SetDescription(aux.Stringid(id,0))
......
...@@ -52,7 +52,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -52,7 +52,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
end end
function s.atkcon(e,tp,eg,ep,ev,re,r,rp) function s.atkcon(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetAttacker() local tc=Duel.GetAttacker()
return tc:IsControler(tp) and tc:IsSetCard(0x2a7) and tc:IsRelateToBattle() return tc:IsControler(tp) and tc:IsSetCard(0x1a7) and tc:IsRelateToBattle()
and tc:IsChainAttackable() and tc:IsChainAttackable()
end end
function s.atkop(e,tp,eg,ep,ev,re,r,rp) function s.atkop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -4,7 +4,7 @@ local s,id,o=GetID() ...@@ -4,7 +4,7 @@ local s,id,o=GetID()
function s.initial_effect(c) function s.initial_effect(c)
c:EnableCounterPermit(0x25) c:EnableCounterPermit(0x25)
aux.AddCodeList(c,78371393) aux.AddCodeList(c,78371393)
aux.AddSetNameMonsterList(c,0x2a4) aux.AddSetNameMonsterList(c,0x1a5)
--Activate --Activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
...@@ -74,7 +74,7 @@ function s.initial_effect(c) ...@@ -74,7 +74,7 @@ function s.initial_effect(c)
c:RegisterEffect(e7) c:RegisterEffect(e7)
end end
function s.cfilter(c) function s.cfilter(c)
return c:IsSetCard(0x2a4) or aux.IsCodeListed(c,78371393) return c:IsSetCard(0x1a5) or aux.IsCodeListed(c,78371393)
end end
function s.counter(e,tp,eg,ep,ev,re,r,rp) function s.counter(e,tp,eg,ep,ev,re,r,rp)
if eg:IsExists(s.cfilter,1,nil) then if eg:IsExists(s.cfilter,1,nil) then
......
...@@ -53,7 +53,7 @@ function s.alimit(e,c) ...@@ -53,7 +53,7 @@ function s.alimit(e,c)
return c:IsFacedown() or not c:IsType(TYPE_RITUAL) return c:IsFacedown() or not c:IsType(TYPE_RITUAL)
end end
function s.filter(c) function s.filter(c)
return (c:IsSetCard(0x2a6) or c:IsSetCard(0x2052) and c:GetType()&0x81==0x81) and c:IsAbleToHand() return (c:IsSetCard(0x1a6) or c:IsSetCard(0x2052) and c:GetType()&0x81==0x81) and c:IsAbleToHand()
and not c:IsCode(id) and not c:IsCode(id)
end end
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
......
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