Commit ff39b403 authored by songtongtong's avatar songtongtong

bug fix

parent b817dc7a
...@@ -3,9 +3,15 @@ local m=16104436 ...@@ -3,9 +3,15 @@ local m=16104436
local cm=_G["c"..m] local cm=_G["c"..m]
Duel.LoadScript("c16199990.lua") Duel.LoadScript("c16199990.lua")
function cm.initial_effect(c) function cm.initial_effect(c)
c:EnableReviveLimit()
aux.EnablePendulumAttribute(c) aux.EnablePendulumAttribute(c)
aux.AddFusionProcFun2(c,cm.fuscheck1,nil,true) aux.AddFusionProcFun2(c,cm.fuscheck1,nil,true)
--spsummon condition
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_SINGLE)
e0:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e0:SetCode(EFFECT_SPSUMMON_CONDITION)
e0:SetValue(cm.limit)
c:RegisterEffect(e0)
--Effect 1 --Effect 1
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
...@@ -40,6 +46,9 @@ function cm.initial_effect(c) ...@@ -40,6 +46,9 @@ function cm.initial_effect(c)
e3:SetOperation(cm.atkoperation) e3:SetOperation(cm.atkoperation)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function cm.limit(e,se,sp,st)
return st&SUMMON_TYPE_FUSION==SUMMON_TYPE_FUSION or se:GetHandler()==e:GetHandler()
end
function cm.fuscheck(c) function cm.fuscheck(c)
return c:check("TENKAISI") return c:check("TENKAISI")
end end
...@@ -113,7 +122,7 @@ end ...@@ -113,7 +122,7 @@ end
function cm.atktarget(e,tp,eg,ep,ev,re,r,rp,chk) function cm.atktarget(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then if chk==0 then
return c:IsCanBeSpecialSummoned(e,0,tp,true,false) and c:IsFaceup() return c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsFaceup()
end end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,0,0)
end end
...@@ -132,7 +141,7 @@ function cm.cfilter(c) ...@@ -132,7 +141,7 @@ function cm.cfilter(c)
end end
function cm.atkoperation(e,tp,eg,ep,ev,re,r,rp) function cm.atkoperation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) and Duel.SpecialSummon(c,0,tp,tp,true,true,POS_FACEUP)>0 then if c:IsRelateToEffect(e) and Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)>0 then
c:CompleteProcedure() c:CompleteProcedure()
Duel.BreakEffect() Duel.BreakEffect()
if Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_ONFIELD,0,1,c) and Duel.SelectYesNo(tp,aux.Stringid(m,3)) then if Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_ONFIELD,0,1,c) and Duel.SelectYesNo(tp,aux.Stringid(m,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