Commit 287be326 authored by POLYMER's avatar POLYMER

fix

parent d9a4a91c
......@@ -81,12 +81,15 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp)
if g:GetCount()>0 and Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)>0 then
Duel.AdjustAll()
local syng=Duel.GetMatchingGroup(s.syncsumfilter,tp,LOCATION_EXTRA,0,nil)
local mg=Duel.GetSynchroMaterial(tp):Filter(Card.IsSetCard,nil,0x16c)
local syng=Duel.GetMatchingGroup(Card.IsSynchroSummonable,tp,LOCATION_EXTRA,0,nil,nil,mg)
--local syng=Duel.GetMatchingGroup(s.syncsumfilter,tp,LOCATION_EXTRA,0,nil)
if #syng>0 and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sg1=Duel.SelectMatchingCard(tp,s.syncsumfilter,tp,LOCATION_EXTRA,0,1,1,nil)
Duel.SynchroSummon(tp,sg1:GetFirst(),nil)
local sg1=g:Select(tp,1,1,nil)
--local sg1=Duel.SelectMatchingCard(tp,s.syncsumfilter,tp,LOCATION_EXTRA,0,1,1,nil)
Duel.SynchroSummon(tp,sg1:GetFirst(),nil,mg)
end
end
end
......@@ -4,7 +4,6 @@ function s.initial_effect(c)
--tribute
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0))
e1:SetCategory(CATEGORY_REMOVE+CATEGORY_SPECIAL_SUMMON+CATEGORY_DRAW)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,id)
......@@ -31,7 +30,7 @@ end
function s.tgop(e,tp,eg,ep,ev,re,r,rp)
--summon proc
local e5=Effect.CreateEffect(e:GetHandler())
e5:SetDescription(aux.Stringid(id,2))
e5:SetDescription(aux.Stringid(id,3))
e5:SetType(EFFECT_TYPE_FIELD)
e5:SetCode(EFFECT_SUMMON_PROC)
e5:SetTargetRange(LOCATION_HAND,0)
......@@ -41,6 +40,21 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp)
e5:SetValue(SUMMON_TYPE_ADVANCE)
e5:SetReset(EVENT_PHASE+PHASE_END)
Duel.RegisterEffect(e5,tp)
--reset
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetCountLimit(1)
e1:SetLabelObject(e5)
e1:SetOperation(s.resetop)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
end
function s.resetop(e,tp,eg,ep,ev,re,r,rp)
local resete=e:GetLabelObject()
if resete then
resete:Reset()
end
end
function s.exfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsSetCard(0x1a4) and c:IsAbleToGrave()
......
function c98920814.initial_effect(c)
--xyz summon
aux.AddXyzProcedure(c,aux.FilterBoolFunction(Card.IsLevel,6),2,2)
aux.AddXyzProcedure(c,nil,6,2)
c:EnableReviveLimit()
--atk change and gain
local e1=Effect.CreateEffect(c)
......
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