Commit 0ad49c87 authored by POLYMER's avatar POLYMER

fix

parent 78796b35
...@@ -84,7 +84,9 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -84,7 +84,9 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local chkf=tp local chkf=tp
local mg1=Duel.GetFusionMaterial(tp) local mg1=Duel.GetFusionMaterial(tp)
local mg2=Duel.GetMatchingGroup(s.filter0,tp,LOCATION_DECK,0,nil) local mg2=Duel.GetMatchingGroup(s.filter0,tp,LOCATION_DECK,0,nil)
if mg2:GetCount()>0 then
mg1:Merge(mg2) mg1:Merge(mg2)
end
local res=Duel.IsExistingMatchingCard(s.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg1,nil,c,chkf) local res=Duel.IsExistingMatchingCard(s.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg1,nil,c,chkf)
if not res then if not res then
local ce=Duel.GetChainMaterial(tp) local ce=Duel.GetChainMaterial(tp)
...@@ -98,6 +100,7 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -98,6 +100,7 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
return res and c:IsRelateToEffect(e) return res and c:IsRelateToEffect(e)
end end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_DECK)
end end
function s.spop(e,tp,eg,ep,ev,re,r,rp) function s.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -62,9 +62,18 @@ function c53700007.sop(e,tp,eg,ep,ev,re,r,rp) ...@@ -62,9 +62,18 @@ function c53700007.sop(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetReset(RESET_EVENT+RESETS_STANDARD)
e1:SetValue(2) e1:SetValue(2)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
elseif e:GetLabel()~=0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then elseif e:GetLabel()~=0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and tc:IsLevelAbove(3) then
local token=Duel.CreateToken(tp,53700001) local token=Duel.CreateToken(tp,53700001)
Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP) if Duel.SpecialSummonStep(token,0,tp,tp,false,false,POS_FACEUP) then
local e1_2=Effect.CreateEffect(c)
e1_2:SetType(EFFECT_TYPE_SINGLE)
e1_2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1_2:SetCode(EFFECT_CHANGE_LEVEL)
e1_2:SetReset(RESET_EVENT+RESETS_STANDARD)
e1_2:SetValue(tc:GetLevel()-2)
token:RegisterEffect(e1_2)
end
Duel.SpecialSummonComplete()
local e2=Effect.CreateEffect(e:GetHandler()) local e2=Effect.CreateEffect(e:GetHandler())
e2:SetType(EFFECT_TYPE_FIELD) e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_CANNOT_BE_SYNCHRO_MATERIAL) e2:SetCode(EFFECT_CANNOT_BE_SYNCHRO_MATERIAL)
......
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