Commit 9af4caa9 authored by nekrozar's avatar nekrozar

fix

parent 1e313802
...@@ -17,6 +17,12 @@ function c16825874.initial_effect(c) ...@@ -17,6 +17,12 @@ function c16825874.initial_effect(c)
e2:SetCondition(c16825874.ccon) e2:SetCondition(c16825874.ccon)
e2:SetOperation(c16825874.cop) e2:SetOperation(c16825874.cop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--hand synchro for double tuner
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e3:SetCode(55863245)
c:RegisterEffect(e3)
end end
c16825874.tuner_filter=aux.FALSE c16825874.tuner_filter=aux.FALSE
function c16825874.filter(c,syncard,tuner,f,lv) function c16825874.filter(c,syncard,tuner,f,lv)
......
...@@ -41,7 +41,10 @@ function c77783947.sccon(e,tp,eg,ep,ev,re,r,rp) ...@@ -41,7 +41,10 @@ function c77783947.sccon(e,tp,eg,ep,ev,re,r,rp)
return ph==PHASE_MAIN1 or ph==PHASE_BATTLE or ph==PHASE_MAIN2 return ph==PHASE_MAIN1 or ph==PHASE_BATTLE or ph==PHASE_MAIN2
end end
function c77783947.mfilter(c) function c77783947.mfilter(c)
return c:IsSetCard(0x9e) return c:IsSetCard(0x9e) and c:IsType(TYPE_MONSTER)
end
function c77783947.mfilter2(c)
return c:IsHasEffect(55863245)
end end
function c77783947.cfilter(c,syn) function c77783947.cfilter(c,syn)
return syn:IsSynchroSummonable(c) return syn:IsSynchroSummonable(c)
...@@ -56,12 +59,24 @@ end ...@@ -56,12 +59,24 @@ end
function c77783947.sctg(e,tp,eg,ep,ev,re,r,rp,chk) function c77783947.sctg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then if chk==0 then
local mg=Duel.GetMatchingGroup(c77783947.mfilter,tp,LOCATION_MZONE,0,nil) local mg=Duel.GetMatchingGroup(c77783947.mfilter,tp,LOCATION_MZONE,0,nil)
local exg=Duel.GetMatchingGroup(c77783947.mfilter2,tp,LOCATION_MZONE,0,nil)
if exg:GetCount()>0 then
local mg2=Duel.GetMatchingGroup(c77783947.mfilter,tp,LOCATION_HAND,0,nil)
mg:Merge(exg)
mg:Merge(mg2)
end
return Duel.IsExistingMatchingCard(c77783947.spfilter,tp,LOCATION_EXTRA,0,1,nil,mg) return Duel.IsExistingMatchingCard(c77783947.spfilter,tp,LOCATION_EXTRA,0,1,nil,mg)
end end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
end end
function c77783947.scop(e,tp,eg,ep,ev,re,r,rp) function c77783947.scop(e,tp,eg,ep,ev,re,r,rp)
local mg=Duel.GetMatchingGroup(c77783947.mfilter,tp,LOCATION_MZONE,0,nil) local mg=Duel.GetMatchingGroup(c77783947.mfilter,tp,LOCATION_MZONE,0,nil)
local exg=Duel.GetMatchingGroup(c77783947.mfilter2,tp,LOCATION_MZONE,0,nil)
if exg:GetCount()>0 then
local mg2=Duel.GetMatchingGroup(c77783947.mfilter,tp,LOCATION_HAND,0,nil)
mg:Merge(exg)
mg:Merge(mg2)
end
local g=Duel.GetMatchingGroup(c77783947.spfilter,tp,LOCATION_EXTRA,0,nil,mg) local g=Duel.GetMatchingGroup(c77783947.spfilter,tp,LOCATION_EXTRA,0,nil,mg)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
......
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