Commit 6c0f15e7 authored by TanakaKotoha's avatar TanakaKotoha

iidx gooooooooooooooooooold

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