Commit 472118ad authored by argon.sun's avatar argon.sun

fix

parent eb33893f
...@@ -63,7 +63,7 @@ int32 field::negate_related_chain(card* pcard) { ...@@ -63,7 +63,7 @@ int32 field::negate_related_chain(card* pcard) {
pchain.disable_reason = core.reason_effect; pchain.disable_reason = core.reason_effect;
pchain.disable_player = core.reason_player; pchain.disable_player = core.reason_player;
pduel->write_buffer8(MSG_CHAIN_DISABLED); pduel->write_buffer8(MSG_CHAIN_DISABLED);
pduel->write_buffer8(i); pduel->write_buffer8(i + 1);
return TRUE; return TRUE;
} }
} }
......
...@@ -20,14 +20,43 @@ function c50088247.initial_effect(c) ...@@ -20,14 +20,43 @@ function c50088247.initial_effect(c)
e2:SetTarget(c50088247.sptg2) e2:SetTarget(c50088247.sptg2)
e2:SetOperation(c50088247.spop2) e2:SetOperation(c50088247.spop2)
c:RegisterEffect(e2) c:RegisterEffect(e2)
if not c50088247.global_check then
c50088247.global_check=true
c50088247[0]=true
c50088247[1]=true
local ge1=Effect.CreateEffect(c)
ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
ge1:SetCode(EVENT_SPSUMMON_SUCCESS)
ge1:SetOperation(c50088247.checkop)
Duel.RegisterEffect(ge1,0)
local ge2=Effect.CreateEffect(c)
ge2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
ge2:SetCode(EVENT_PHASE_START+PHASE_DRAW)
ge2:SetOperation(c50088247.clear)
Duel.RegisterEffect(ge2,0)
end
end
function c50088247.checkop(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst()
while tc do
if tc:IsLevelAbove(5) then
c50088247[tc:GetSummonPlayer()]=false
end
tc=eg:GetNext()
end
end
function c50088247.clear(e,tp,eg,ep,ev,re,r,rp)
c50088247[0]=true
c50088247[1]=true
end end
function c50088247.cfilter(c) function c50088247.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0x2f) return c:IsFaceup() and c:IsSetCard(0x2f)
end end
function c50088247.spcon(e,c) function c50088247.spcon(e,c)
if c==nil then return true end if c==nil then return true end
return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 local tp=c:GetControler()
and Duel.IsExistingMatchingCard(c50088247.cfilter,c:GetControler(),LOCATION_MZONE,0,1,nil) return c50088247[tp] and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c50088247.cfilter,tp,LOCATION_MZONE,0,1,nil)
end end
function c50088247.spop(e,tp,eg,ep,ev,re,r,rp,c) function c50088247.spop(e,tp,eg,ep,ev,re,r,rp,c)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
......
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