Commit c997dd61 authored by GuGu's avatar GuGu

Update c86379114.lua

parent d2173fa6
Pipeline #19885 passed with stage
in 40 seconds
......@@ -64,15 +64,15 @@ function c86379114.initial_effect(c)
c:RegisterEffect(e8)
end
--
function c86379114.sumfilter(c)
return c:IsSetCard(0x300)
function c86379114.sumfilter(c,tp)
return c:IsSetCard(0x300) and c:IsControler(tp)
end
function c86379114.sumcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c86379114.sumfilter,1,nil)
return eg:IsExists(c86379114.sumfilter,1,nil,tp)
end
function c86379114.sumsuc(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetCurrentChain()==0 then
Duel.SetChainLimitTillChainEnd(aux.FALSE)
Duel.SetChainLimitTillChainEnd(c86379114.chainlm)
elseif Duel.GetCurrentChain()==1 then
e:GetHandler():RegisterFlagEffect(86379115,RESET_EVENT+RESETS_STANDARD,0,1)
local e1=Effect.CreateEffect(e:GetHandler())
......@@ -92,10 +92,13 @@ function c86379114.resetop(e,tp,eg,ep,ev,re,r,rp)
end
function c86379114.sumsuc2(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():GetFlagEffect(86379115)~=0 then
Duel.SetChainLimitTillChainEnd(aux.FALSE)
Duel.SetChainLimitTillChainEnd(c86379114.chainlm)
end
e:GetHandler():ResetFlagEffect(86379115)
end
function c86379114.chainlm(e,rp,tp)
return tp==rp
end
--
function c86379114.effectfilter(e,ct)
local p=e:GetHandler():GetControler()
......
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