Commit ca1e8ca2 authored by TanakaKotoha's avatar TanakaKotoha

nanodesu

parent d99f05bd
......@@ -51,46 +51,21 @@ function c65030055.matfilter(c)
return c:IsFaceup() and c:IsSetCard(0x6da2)
end
function c65030055.lkfilter(c,tuc)
return c:IsType(TYPE_SYNCHRO) and c:IsSynchroSummonable(tuc)
return c:IsType(TYPE_SYNCHRO) and c:IsSynchroSummonable(tuc,mg)
end
function c65030055.thcon(e,tp,eg,ep,ev,re,r,rp)
local el={}
local mg=Duel.GetMatchingGroup(c65030055.matfilter,tp,LOCATION_MZONE,0,nil)
local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_MZONE,0,mg)
for tc in aux.Next(g) do
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CANNOT_BE_SYNCHRO_MATERIAL)
tc:RegisterEffect(e1)
table.insert(el,e1)
end
local res=Duel.IsExistingMatchingCard(c65030055.lkfilter,tp,LOCATION_EXTRA,0,1,nil,e:GetHandler())
for _,e in ipairs(el) do
e:Reset()
end
return res
local mg=Duel.GetMatchingGroup(Card.IsSetCard,tp,LOCATION_MZONE,0,nil,0x6da2)
return Duel.IsExistingMatchingCard(Card.IsSynchroSummonable,tp,LOCATION_EXTRA,0,1,nil,e:GetHandler(),mg)
end
function c65030055.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,65030055)
local c=e:GetHandler()
if not c:IsControler(tp) and c:IsLocation(LOCATION_MZONE) then return end
local el={}
local mg=Duel.GetMatchingGroup(c65030055.matfilter,tp,LOCATION_MZONE,0,nil)
local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_MZONE,0,mg)
for tc in aux.Next(g) do
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CANNOT_BE_SYNCHRO_MATERIAL)
tc:RegisterEffect(e1)
table.insert(el,e1)
end
local xg=Duel.GetMatchingGroup(Card.IsSynchroSummonable,tp,LOCATION_EXTRA,0,nil,c)
local mg=Duel.GetMatchingGroup(Card.IsSetCard,tp,LOCATION_MZONE,0,nil,0x6da2)
local xg=Duel.GetMatchingGroup(Card.IsSynchroSummonable,tp,LOCATION_EXTRA,0,1,nil,c,mg)
if xg:GetCount()>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sg=xg:Select(tp,1,1,nil)
Duel.SynchroSummon(tp,sg:GetFirst(),c)
end
for _,e in ipairs(el) do
e:Reset()
end
end
\ No newline at end of file
......@@ -28,13 +28,6 @@ function c65030065.regop(e,tp,eg,ep,ev,re,r,rp)
e1:SetTarget(c65030065.e1tg)
e1:SetValue(500)
c:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EFFECT_INDESTRUCTABLE_BATTLE)
e2:SetValue(1)
c:RegisterEffect(e2)
local e4=e2:Clone()
e4:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
c:RegisterEffect(e4)
c:RegisterFlagEffect(0,RESET_EVENT+EVENT_LEAVE_FIELD_P,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(65030065,0))
end
if ct>=3 then
......
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