Commit 4ae8948a authored by Tachibana's avatar Tachibana

得得得得得

parent 29cf3bf2
Pipeline #13205 passed with stages
in 29 minutes and 30 seconds
No preview for this file type
......@@ -137,7 +137,7 @@ function cm.refilter(c,tp,re)
return c:IsReleasable() or (c:IsType(TYPE_SPELL+TYPE_TRAP) and flag)
end
function cm.cost2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.refilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil,tp) and e:GetHandler():IsAbleToRemoveAsCost() end
if chk==0 then return Duel.IsExistingMatchingCard(cm.refilter,tp,LOCATION_ONFIELD+LOCATION_HAND,0,1,nil,tp) and e:GetHandler():IsAbleToRemoveAsCost() end
Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g=Duel.SelectMatchingCard(tp,cm.refilter,tp,LOCATION_ONFIELD+LOCATION_HAND,0,1,1,nil,tp)
......
......@@ -35,7 +35,7 @@ function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if Sre_setback[1]~=0 then
res=Sre_setback[1]
end
if chk==0 then return res end
if chk==0 then return res and not res:IsDisabled() end
Duel.SetOperationInfo(0,CATEGORY_DISABLE,Sre_setback[1],1,0,0)
end
function cm.thop(e,tp,eg,ep,ev,re,r,rp)
......@@ -45,12 +45,12 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_DISABLE)
e1:SetReset(RESET_EVENT+0x7e0000)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetReset(RESET_EVENT+0x7e0000)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e2)
end
if c:IsRelateToEffect(e) and c:IsCanTurnSet() and e:IsHasType(EFFECT_TYPE_ACTIVATE) then
......
......@@ -32,14 +32,14 @@ function c4210009.initial_effect(c)
c:RegisterEffect(e3)
c4210009.tgcard = nil
end
function c4210009.cfilter(c,ft)
return c:IsFaceup() and c:IsSetCard(0xa2f) and c:IsReleasable() and (ft>0 or c:GetSequence()<5)
function c4210009.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0xa2f) and c:IsReleasable()
end
function c4210009.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
if chk==0 then return ft>-1 and Duel.IsExistingMatchingCard(c4210009.cfilter,tp,LOCATION_MZONE,0,1,nil,ft) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND)
local g=Duel.SelectMatchingCard(tp,c4210009.cfilter,tp,LOCATION_MZONE,0,1,1,nil,ft)
local c = e:GetHandler()
if chk==0 then return Duel.GetMZoneCount(tp,c)>0 and Duel.CheckReleaseGroup(tp,c4210009.cfilter,1,c) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g=Duel.SelectReleaseGroup(tp,c4210009.cfilter,1,1,e:GetHandler())
if g:GetFirst():GetFlagEffect(4210010)~=0 then e:SetLabel(1) c4210009.tgcard = g:GetFirst() else e:SetLabel(0) end
Duel.Release(g,REASON_COST)
end
......
......@@ -21,15 +21,15 @@ function c4210042.cfilter(c,ft)
return c:IsFaceup() and c:IsSetCard(0xa2f) and c:IsType(TYPE_MONSTER) and c:IsReleasable()
end
function c4210042.setfilter(c)
return c:IsSetCard(0xa2f) and (c:IsType(TYPE_SPELL) or c:IsType(TYPE_TRAP)) and c:IsSSetable() and not c:IsCode(4210042)
return c:IsSetCard(0xa2f) and (c:IsType(TYPE_SPELL) or c:IsType(TYPE_TRAP)) and c:IsSSetable() and not c:IsCode(4210042)
end
function c4210042.condition(e,tp,eg,ep,ev,re,r,rp)
return re:IsActiveType(TYPE_MONSTER) and Duel.IsChainNegatable(ev)
end
function c4210042.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c4210042.cfilter,tp,LOCATION_MZONE,0,1,nil,ft) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND)
local g=Duel.SelectMatchingCard(tp,c4210042.cfilter,tp,LOCATION_MZONE,0,1,1,nil)
if chk==0 then return Duel.CheckReleaseGroup(tp,c4210042.cfilter,1,e:GetHandler()) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g=Duel.SelectReleaseGroup(tp,c4210042.cfilter,1,1,e:GetHandler())
if g:GetFirst():GetFlagEffect(4210010)~=0 then e:SetLabel(1) else e:SetLabel(0) end
Duel.Release(g,REASON_COST)
end
......
......@@ -21,15 +21,15 @@ function c4210043.cfilter(c,ft)
return c:IsFaceup() and c:IsSetCard(0xa2f) and c:IsType(TYPE_MONSTER) and c:IsReleasable()
end
function c4210043.setfilter(c)
return c:IsSetCard(0xa2f) and (c:IsType(TYPE_SPELL) or c:IsType(TYPE_TRAP)) and c:IsSSetable() and not c:IsCode(4210043)
return c:IsSetCard(0xa2f) and (c:IsType(TYPE_SPELL) or c:IsType(TYPE_TRAP)) and c:IsSSetable() and not c:IsCode(4210043)
end
function c4210043.condition(e,tp,eg,ep,ev,re,r,rp)
return re:IsHasType(EFFECT_TYPE_ACTIVATE) and Duel.IsChainNegatable(ev)
end
function c4210043.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c4210043.cfilter,tp,LOCATION_MZONE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND)
local g=Duel.SelectMatchingCard(tp,c4210043.cfilter,tp,LOCATION_MZONE,0,1,1,nil)
if chk==0 then return Duel.CheckReleaseGroup(tp,c4210043.cfilter,1,e:GetHandler()) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g=Duel.SelectReleaseGroup(tp,c4210043.cfilter,1,1,e:GetHandler())
if g:GetFirst():GetFlagEffect(4210010)~=0 then e:SetLabel(1) else e:SetLabel(0) end
Duel.Release(g,REASON_COST)
end
......
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