Commit fd036f46 authored by GuGu's avatar GuGu

Update c82430.lua 176行跳红

parent 26147527
Pipeline #21800 passed with stage
in 1 minute and 1 second
......@@ -82,6 +82,7 @@ function c82430.operation(e,tp,eg,ep,ev,re,r,rp)
e3:SetCode(EVENT_CHAIN_SOLVED)
e3:SetCondition(c82430.drcon2)
e3:SetOperation(c82430.drop2)
e3:SetLabelObject(e2)
e3:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e3,tp)
if e:IsHasType(EFFECT_TYPE_ACTIVATE) then
......@@ -135,6 +136,8 @@ function c82430.regcon(e,tp,eg,ep,ev,re,r,rp)
end
function c82430.regop(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterFlagEffect(tp,82430,RESET_CHAIN,0,1)
local seq=eg:GetFirst():GetSequence()
e:SetLabel(seq)
end
function c82430.drcon2(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFlagEffect(tp,82430)>0
......@@ -143,6 +146,7 @@ function c82430.drop2(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local n=Duel.GetFlagEffect(tp,82430)
Duel.ResetFlagEffect(tp,82430)
local seq=e:GetLabelObject():GetLabel()
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_FIELD)
e4:SetCode(EFFECT_DISABLE)
......@@ -173,9 +177,7 @@ function c82430.distg(e,c)
return aux.GetColumn(c,tp)==seq
end
function c82430.disop(e,tp,eg,ep,ev,re,r,rp)
local lg=eg:Filter(c82430.filter,nil,tp)
if lg:GetCount()==0 then return end
local tseq=lg:GetFirst():GetSequence()
local tseq=e:GetLabel()
local loc,seq=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION,CHAININFO_TRIGGERING_SEQUENCE)
if loc&LOCATION_SZONE~=0 and seq<=4 and re:IsActiveType(TYPE_SPELL+TYPE_TRAP+TYPE_MONSTER)
and ((rp==tp and seq==tseq) or (rp==1-tp and seq==4-tseq)) 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