Commit b51b2971 authored by salix5's avatar salix5 Committed by GitHub

fix シューティング・セイヴァー・スター・ドラゴン (#1915)

* fix シューティング・セイヴァー・スター・ドラゴン

* update syncheck
parent 5e521e5b
...@@ -3,7 +3,7 @@ function c40939228.initial_effect(c) ...@@ -3,7 +3,7 @@ function c40939228.initial_effect(c)
aux.AddMaterialCodeList(c,21159309) aux.AddMaterialCodeList(c,21159309)
aux.AddCodeList(c,44508094) aux.AddCodeList(c,44508094)
--synchro summon --synchro summon
aux.AddSynchroMixProcedure(c,c40939228.mfilter,nil,nil,aux.NonTuner(nil),1,99,c40939228.gfilter) aux.AddSynchroMixProcedure(c,aux.Tuner(Card.IsCode,21159309),nil,nil,aux.NonTuner(nil),1,99,c40939228.syncheck(c))
c:EnableReviveLimit() c:EnableReviveLimit()
--special summon condition --special summon condition
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
...@@ -46,14 +46,13 @@ function c40939228.initial_effect(c) ...@@ -46,14 +46,13 @@ function c40939228.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
c40939228.material_type=TYPE_SYNCHRO c40939228.material_type=TYPE_SYNCHRO
function c40939228.mfilter(c) function c40939228.cfilter(c,syncard)
return c:IsCode(21159309) and c:IsSynchroType(TYPE_TUNER) return c:IsRace(RACE_DRAGON) and c:IsSynchroType(TYPE_SYNCHRO) and c:IsNotTuner(syncard)
end end
function c40939228.cfilter(c) function c40939228.syncheck(syncard)
return c:IsRace(RACE_DRAGON) and c:IsSynchroType(TYPE_SYNCHRO) return function(g)
end return g:IsExists(c40939228.cfilter,1,nil,syncard)
function c40939228.gfilter(g,syncard,c1) end
return g:IsExists(c40939228.cfilter,1,c1)
end end
function c40939228.distg(e,tp,eg,ep,ev,re,r,rp,chk) function c40939228.distg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(aux.NegateEffectMonsterFilter,tp,0,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(aux.NegateEffectMonsterFilter,tp,0,LOCATION_MZONE,1,nil) 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