Commit 6c0f15e7 authored by TanakaKotoha's avatar TanakaKotoha

iidx gooooooooooooooooooold

parent 988d38a2
...@@ -30,7 +30,6 @@ function c14801935.initial_effect(c) ...@@ -30,7 +30,6 @@ function c14801935.initial_effect(c)
e4:SetProperty(EFFECT_FLAG_NO_TURN_RESET) e4:SetProperty(EFFECT_FLAG_NO_TURN_RESET)
e4:SetCountLimit(1) e4:SetCountLimit(1)
e4:SetCondition(c14801935.negcon) e4:SetCondition(c14801935.negcon)
e4:SetTarget(c14801935.negtg)
e4:SetOperation(c14801935.negop) e4:SetOperation(c14801935.negop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
--token --token
...@@ -66,15 +65,15 @@ function c14801935.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -66,15 +65,15 @@ function c14801935.operation(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c14801935.negcon(e,tp,eg,ep,ev,re,r,rp) function c14801935.negcon(e,tp,eg,ep,ev,re,r,rp)
return rp==1-tp and Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION)==LOCATION_SZONE local loc=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION)
and re:IsActiveType(TYPE_TRAP) and Duel.IsChainDisablable(ev) return rp==1-tp and bit.band(loc,LOCATION_SZONE)~=0
and re:IsActiveType(TYPE_TRAP) and Duel.IsChainDisablable(ev)
end end
function c14801935.negtg(e,tp,eg,ep,ev,re,r,rp,chk) function c14801935.negop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():RegisterFlagEffect(0,RESET_EVENT+RESETS_STANDARD,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(14801934,1)) if Duel.NegateEffect(ev) then
end e:GetHandler():RegisterFlagEffect(0,RESET_EVENT+RESETS_STANDARD,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(14801935,1))
function c14801935.negop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_CARD,0,14801935)
Duel.Hint(HINT_CARD,0,14801935) end
Duel.NegateEffect(ev)
end end
function c14801935.spcon(e,tp,eg,ep,ev,re,r,rp) function c14801935.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -53,7 +53,7 @@ function c33310160.eftg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -53,7 +53,7 @@ function c33310160.eftg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then if chk==0 then
if e:GetLabel()==0 then return false end if e:GetLabel()==0 then return false end
e:SetLabel(0) e:SetLabel(0)
return og:IsExists(c33310160.filter,tp,1,nil,e,tp,eg,ep,ev,re,r,rp) return og:IsExists(c33310160.filter,1,nil,e,tp,eg,ep,ev,re,r,rp)
end end
local tc=og:FilterSelect(tp,c33310160.filter,1,1,nil,e,tp,eg,ep,ev,re,r,rp):GetFirst() local tc=og:FilterSelect(tp,c33310160.filter,1,1,nil,e,tp,eg,ep,ev,re,r,rp):GetFirst()
Duel.SendtoGrave(tc,REASON_COST) Duel.SendtoGrave(tc,REASON_COST)
......
...@@ -114,16 +114,23 @@ function c60150621.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -114,16 +114,23 @@ function c60150621.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c60150621.desfilter2(c,s,tp) function c60150621.desfilter2(c,s,tp)
local seq=c:GetSequence() local seq=c:GetSequence()
return seq<5 and math.abs(seq-s)==1 and c:IsControler(tp) return math.abs(seq-s)==1 and c:IsControler(tp)
end end
function c60150621.activate(e,tp,eg,ep,ev,re,r,rp) function c60150621.activate(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local cg=c:GetColumnGroup() local cg=c:GetColumnGroup()
local seq=c:GetSequence()
local g=Duel.GetMatchingGroup(c60150621.thfilter,tp,0,LOCATION_ONFIELD,nil,cg) local g=Duel.GetMatchingGroup(c60150621.thfilter,tp,0,LOCATION_ONFIELD,nil,cg)
local dg=Group.CreateGroup() if Duel.Destroy(g,REASON_EFFECT)~=0 then
if seq<5 then dg=Duel.GetMatchingGroup(c60150621.desfilter2,tp,0,LOCATION_ONFIELD,nil,seq,c) end local seq=e:GetHandler():GetSequence()
if Duel.Destroy(g,REASON_EFFECT)~=0 and dg:GetCount()>0 then local g=Group.CreateGroup()
Duel.SendtoHand(dg,nil,REASON_EFFECT) local tc=Duel.GetFieldCard(1-tp,LOCATION_MZONE,3-seq)
end if tc then g:AddCard(tc) end
tc=Duel.GetFieldCard(1-tp,LOCATION_SZONE,3-seq)
if tc then g:AddCard(tc) end
tc=Duel.GetFieldCard(1-tp,LOCATION_MZONE,5-seq)
if tc then g:AddCard(tc) end
tc=Duel.GetFieldCard(1-tp,LOCATION_SZONE,5-seq)
if tc then g:AddCard(tc) end
Duel.SendtoHand(g,nil,REASON_EFFECT)
end
end end
\ No newline at end of file
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