Commit 87063a01 authored by VanillaSalt's avatar VanillaSalt

fix

parent 4a077c3c
...@@ -41,29 +41,21 @@ function c33776734.initial_effect(c) ...@@ -41,29 +41,21 @@ function c33776734.initial_effect(c)
ge1:SetOperation(c33776734.checkop1) ge1:SetOperation(c33776734.checkop1)
Duel.RegisterEffect(ge1,0) Duel.RegisterEffect(ge1,0)
local ge2=ge1:Clone() local ge2=ge1:Clone()
e2:SetCode(EVENT_CHAIN_NEGATED) ge2:SetCode(EVENT_CHAIN_NEGATED)
e2:SetOperation(c33776734.checkop2) ge2:SetOperation(c33776734.checkop2)
Duel.RegisterEffect(ge2,0) Duel.RegisterEffect(ge2,0)
end end
end end
c33776734.lvupcount=1 c33776734.lvupcount=1
c33776734.lvup={33776734} c33776734.lvup={33776734}
function c33776734.checkop1(e,tp,eg,ep,ev,re,r,rp) function c33776734.checkop1(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst() if re and re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_SPELL) then
while tc do re:GetHandler():RegisterFlagEffect(33776734,RESET_EVENT+0x1fe0000,0,1)
if re and re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_SPELL) and tc==re:GetHandler() then
tc:RegisterFlagEffect(33776734,RESET_EVENT+0x1fe0000,0,1)
end
tc=eg:GetNext()
end end
end end
function c33776734.checkop2(e,tp,eg,ep,ev,re,r,rp) function c33776734.checkop2(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst() if re and re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_SPELL) then
while tc do re:GetHandler():ResetFlagEffect(33776734)
if re and re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_SPELL) and tc==re:GetHandler() then
tc:ResetFlagEffect(33776734)
end
tc=eg:GetNext()
end end
end end
function c33776734.spcon(e,tp,eg,ep,ev,re,r,rp) function c33776734.spcon(e,tp,eg,ep,ev,re,r,rp)
......
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