Commit 45c66c16 authored by POLYMER's avatar POLYMER

fix

parent ee38b16f
......@@ -191,7 +191,9 @@ function cm.pspop(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummonComplete()
for tc in aux.Next(g) do tc:CompleteProcedure() end--]]
local tc=g:GetFirst()
if not tc.pendulum_rule then
if not tc.pendulum_rule or not tc.pendulum_rule[tc] then
local tcm=getmetatable(tc)
tcm.pendulum_rule=tcm.pendulum_rule or {}
local e1=Effect.CreateEffect(tc)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
......@@ -202,9 +204,9 @@ function cm.pspop(e,tp,eg,ep,ev,re,r,rp)
e1:SetTarget(function(e) e:SetLabel(0) return true end)
e1:SetValue(SUMMON_TYPE_PENDULUM)
tc:RegisterEffect(e1,true)
_G["c"..tc:GetOriginalCode()].pendulum_rule=e1
tcm.pendulum_rule[tc]=e1
else
tc.pendulum_rule:SetLabel(1)
tc.pendulum_rule[tc]:SetLabel(1)
end
Duel.SpecialSummonRule(tp,tc,SUMMON_TYPE_PENDULUM)
end
......
......@@ -191,7 +191,9 @@ function cm.pspop(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummonComplete()
for tc in aux.Next(g) do tc:CompleteProcedure() end--]]
local tc=g:GetFirst()
if not tc.pendulum_rule then
if not tc.pendulum_rule or not tc.pendulum_rule[tc] then
local tcm=getmetatable(tc)
tcm.pendulum_rule=tcm.pendulum_rule or {}
local e1=Effect.CreateEffect(tc)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
......@@ -202,9 +204,9 @@ function cm.pspop(e,tp,eg,ep,ev,re,r,rp)
e1:SetTarget(function(e) e:SetLabel(0) return true end)
e1:SetValue(SUMMON_TYPE_PENDULUM)
tc:RegisterEffect(e1,true)
_G["c"..tc:GetOriginalCode()].pendulum_rule=e1
tcm.pendulum_rule[tc]=e1
else
tc.pendulum_rule:SetLabel(1)
tc.pendulum_rule[tc]:SetLabel(1)
end
Duel.SpecialSummonRule(tp,tc,SUMMON_TYPE_PENDULUM)
end
......
......@@ -192,7 +192,9 @@ function cm.pspop(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummonComplete()
for tc in aux.Next(g) do tc:CompleteProcedure() end--]]
local tc=g:GetFirst()
if not tc.pendulum_rule then
if not tc.pendulum_rule or not tc.pendulum_rule[tc] then
local tcm=getmetatable(tc)
tcm.pendulum_rule=tcm.pendulum_rule or {}
local e1=Effect.CreateEffect(tc)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
......@@ -203,9 +205,9 @@ function cm.pspop(e,tp,eg,ep,ev,re,r,rp)
e1:SetTarget(function(e) e:SetLabel(0) return true end)
e1:SetValue(SUMMON_TYPE_PENDULUM)
tc:RegisterEffect(e1,true)
_G["c"..tc:GetOriginalCode()].pendulum_rule=e1
tcm.pendulum_rule[tc]=e1
else
tc.pendulum_rule:SetLabel(1)
tc.pendulum_rule[tc]:SetLabel(1)
end
Duel.SpecialSummonRule(tp,tc,SUMMON_TYPE_PENDULUM)
end
......
......@@ -191,7 +191,9 @@ function cm.pspop(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummonComplete()
for tc in aux.Next(g) do tc:CompleteProcedure() end--]]
local tc=g:GetFirst()
if not tc.pendulum_rule then
if not tc.pendulum_rule or not tc.pendulum_rule[tc] then
local tcm=getmetatable(tc)
tcm.pendulum_rule=tcm.pendulum_rule or {}
local e1=Effect.CreateEffect(tc)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
......@@ -202,9 +204,9 @@ function cm.pspop(e,tp,eg,ep,ev,re,r,rp)
e1:SetTarget(function(e) e:SetLabel(0) return true end)
e1:SetValue(SUMMON_TYPE_PENDULUM)
tc:RegisterEffect(e1,true)
_G["c"..tc:GetOriginalCode()].pendulum_rule=e1
tcm.pendulum_rule[tc]=e1
else
tc.pendulum_rule:SetLabel(1)
tc.pendulum_rule[tc]:SetLabel(1)
end
Duel.SpecialSummonRule(tp,tc,SUMMON_TYPE_PENDULUM)
end
......
......@@ -190,7 +190,9 @@ function cm.pspop(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummonComplete()
for tc in aux.Next(g) do tc:CompleteProcedure() end--]]
local tc=g:GetFirst()
if not tc.pendulum_rule then
if not tc.pendulum_rule or not tc.pendulum_rule[tc] then
local tcm=getmetatable(tc)
tcm.pendulum_rule=tcm.pendulum_rule or {}
local e1=Effect.CreateEffect(tc)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
......@@ -201,9 +203,9 @@ function cm.pspop(e,tp,eg,ep,ev,re,r,rp)
e1:SetTarget(function(e) e:SetLabel(0) return true end)
e1:SetValue(SUMMON_TYPE_PENDULUM)
tc:RegisterEffect(e1,true)
_G["c"..tc:GetOriginalCode()].pendulum_rule=e1
tcm.pendulum_rule[tc]=e1
else
tc.pendulum_rule:SetLabel(1)
tc.pendulum_rule[tc]:SetLabel(1)
end
Duel.SpecialSummonRule(tp,tc,SUMMON_TYPE_PENDULUM)
end
......
......@@ -190,7 +190,9 @@ function cm.pspop(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummonComplete()
for tc in aux.Next(g) do tc:CompleteProcedure() end--]]
local tc=g:GetFirst()
if not tc.pendulum_rule then
if not tc.pendulum_rule or not tc.pendulum_rule[tc] then
local tcm=getmetatable(tc)
tcm.pendulum_rule=tcm.pendulum_rule or {}
local e1=Effect.CreateEffect(tc)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
......@@ -201,9 +203,9 @@ function cm.pspop(e,tp,eg,ep,ev,re,r,rp)
e1:SetTarget(function(e) e:SetLabel(0) return true end)
e1:SetValue(SUMMON_TYPE_PENDULUM)
tc:RegisterEffect(e1,true)
_G["c"..tc:GetOriginalCode()].pendulum_rule=e1
tcm.pendulum_rule[tc]=e1
else
tc.pendulum_rule:SetLabel(1)
tc.pendulum_rule[tc]:SetLabel(1)
end
Duel.SpecialSummonRule(tp,tc,SUMMON_TYPE_PENDULUM)
end
......
......@@ -264,7 +264,9 @@ function cm.pspop(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummonComplete()
for tc in aux.Next(g) do tc:CompleteProcedure() end--]]
local tc=g:GetFirst()
if not tc.pendulum_rule then
if not tc.pendulum_rule or not tc.pendulum_rule[tc] then
local tcm=getmetatable(tc)
tcm.pendulum_rule=tcm.pendulum_rule or {}
local e1=Effect.CreateEffect(tc)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
......@@ -275,9 +277,9 @@ function cm.pspop(e,tp,eg,ep,ev,re,r,rp)
e1:SetTarget(function(e) e:SetLabel(0) return true end)
e1:SetValue(SUMMON_TYPE_PENDULUM)
tc:RegisterEffect(e1,true)
_G["c"..tc:GetOriginalCode()].pendulum_rule=e1
tcm.pendulum_rule[tc]=e1
else
tc.pendulum_rule:SetLabel(1)
tc.pendulum_rule[tc]:SetLabel(1)
end
Duel.SpecialSummonRule(tp,tc,SUMMON_TYPE_PENDULUM)
end
\ No newline at end of file
......@@ -13,7 +13,7 @@ function c9911223.initial_effect(c)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCode(EVENT_SUMMON_SUCCESS)
e2:SetRange(LOCATION_SZONE)
e2:SetCountLimit(1)
e2:SetCountLimit(1,EFFECT_COUNT_CODE_SINGLE)
e2:SetCondition(c9911223.spcon)
e2:SetTarget(c9911223.sptg)
e2:SetOperation(c9911223.spop)
......
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