Commit 120b6bae authored by TanakaKotoha's avatar TanakaKotoha

cctv

parent d333df0b
No preview for this file type
...@@ -32,7 +32,6 @@ function c16100002.initial_effect(c) ...@@ -32,7 +32,6 @@ function c16100002.initial_effect(c)
e1:SetCountLimit(1) e1:SetCountLimit(1)
e1:SetCondition(c16100002.chcon) e1:SetCondition(c16100002.chcon)
e1:SetCost(c16100002.cost) e1:SetCost(c16100002.cost)
e1:SetTarget(c16100002.chtg)
e1:SetOperation(c16100002.chop) e1:SetOperation(c16100002.chop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--im --im
...@@ -62,19 +61,15 @@ function c16100002.tg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -62,19 +61,15 @@ function c16100002.tg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
-- --
function c16100002.op(e,tp,eg,ep,ev,re,r,rp) function c16100002.op(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) if Duel.IsExistingMatchingCard(c16100002.tgf,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil) then
local g=Duel.SelectMatchingCard(tp,c16100002.tgf,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
if g:GetCount()>0 then local g=Duel.SelectMatchingCard(tp,c16100002.tgf,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil)
Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.SendtoHand(g,nil,REASON_EFFECT)
end end
end end
-- --
function c16100002.chcon(e,tp,eg,ep,ev,re,r,rp) function c16100002.chcon(e,tp,eg,ep,ev,re,r,rp)
return rp==1-tp and not e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED) return ep==1-tp and Duel.IsExistingMatchingCard(aux.TRUE,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil)
end
--
function c16100002.chtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
end end
-- --
function c16100002.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c16100002.cost(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -13,12 +13,12 @@ function c16100006.initial_effect(c) ...@@ -13,12 +13,12 @@ function c16100006.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--He is angry --He is angry
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(16100002,1)) e2:SetDescription(aux.Stringid(16100006,1))
e2:SetCategory(CATEGORY_SEARCH) e2:SetCategory(CATEGORY_SEARCH)
e2:SetType(EFFECT_TYPE_IGNITION) e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetCode(EVENT_FREE_CHAIN) e2:SetCode(EVENT_FREE_CHAIN)
e2:SetRange(LOCATION_GRAVE) e2:SetRange(LOCATION_GRAVE)
e1:SetCountLimit(1,16100006+10000) e1:SetCountLimit(1,16100006+100)
e2:SetCost(c16100006.cost) e2:SetCost(c16100006.cost)
e2:SetTarget(c16100006.tg) e2:SetTarget(c16100006.tg)
e2:SetOperation(c16100006.op) e2:SetOperation(c16100006.op)
...@@ -44,12 +44,20 @@ function c16100006.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -44,12 +44,20 @@ function c16100006.activate(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON+EFFECT_CANNOT_SUMMON) e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetTargetRange(1,0) e1:SetTargetRange(1,0)
e1:SetTarget(c16100006.splimit) e1:SetTarget(c16100006.splimit)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_CANNOT_SUMMON)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e2:SetTargetRange(1,0)
e2:SetTarget(c16100006.splimit)
e2:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e2,tp)
end end
function c16100006.splimit(e,c,sump,sumtype,sumpos,targetp,se) function c16100006.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return not c:IsSetCard(0xcc0) return not c:IsSetCard(0xcc0)
......
...@@ -18,7 +18,7 @@ function c16100009.initial_effect(c) ...@@ -18,7 +18,7 @@ function c16100009.initial_effect(c)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_TO_GRAVE) e2:SetCode(EVENT_TO_GRAVE)
e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCountLimit(1,16100009+10000+EFFECT_COUNT_CODE_DUEL) e2:SetCountLimit(1,EFFECT_COUNT_CODE_DUEL)
e2:SetOperation(c16100009.operation) e2:SetOperation(c16100009.operation)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
...@@ -36,18 +36,16 @@ function c16100009.filter1(c) ...@@ -36,18 +36,16 @@ function c16100009.filter1(c)
end end
-- --
function c16100009.op(e,tp,eg,ep,ev,re,r,rp) function c16100009.op(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetFieldGroup(e:GetHandlerPlayer(),LOCATION_MZONE+LOCATION_HAND,0) if not Duel.IsExistingMatchingCard(c16100013.filter,tp,LOCATION_MZONE+LOCATION_HAND,0,1,nil) then
if not g:IsExists(c16100009.filter,1,nil) then
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_ACTIVATE) e1:SetCode(EFFECT_CANNOT_ACTIVATE)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetReset(RESET_PHASE+PHASE_END,2) e1:SetReset(RESET_PHASE+PHASE_END)
e1:SetTargetRange(1,0) e1:SetTargetRange(1,0)
e1:SetValue(c16100009.disop) e1:SetValue(c16100009.disop)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end else
if g:IsExists(c16100009.filter,1,nil) then
Duel.SpecialSummon(e:GetHandler(),0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(e:GetHandler(),0,tp,tp,false,false,POS_FACEUP)
end end
end end
......
...@@ -60,16 +60,18 @@ end ...@@ -60,16 +60,18 @@ end
-- --
function c16100010.activate(e,tp,eg,ep,ev,re,r,rp) function c16100010.activate(e,tp,eg,ep,ev,re,r,rp)
if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
Duel.Remove(eg,POS_FACEUP,REASON_EFFECT) Duel.Remove(re:GetHandler(),POS_FACEUP,REASON_EFFECT)
end end
if Duel.SelectYesNo(tp,aux.Stringid(16100010,1)) then if Duel.IsExistingMatchingCard(c16100010.filter0,tp,LOCATION_DECK,0,1,nil) then
local g=Duel.SelectMatchingCard(tp,c16100010.filter0,tp,LOCATION_DECK,0,1,1,nil) if Duel.SelectYesNo(tp,aux.Stringid(16100010,1)) then
if g:GetCount()>0 then local g=Duel.SelectMatchingCard(tp,c16100010.filter0,tp,LOCATION_DECK,0,1,1,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONFIRM) if g:GetCount()>0 then
sg=g:Select(tp,1,1,nil) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONFIRM)
Duel.SendtoHand(sg,1-tp,REASON_EFFECT) sg=g:Select(tp,1,1,nil)
Duel.SendtoHand(sg,1-tp,REASON_EFFECT)
end end
end end
end
end end
-- --
function c16100010.ctop(e,tp,eg,ep,ev,re,r,rp) function c16100010.ctop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -17,7 +17,7 @@ function c16100013.initial_effect(c) ...@@ -17,7 +17,7 @@ function c16100013.initial_effect(c)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_TO_GRAVE) e2:SetCode(EVENT_TO_GRAVE)
e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCountLimit(1,16100013+10000+EFFECT_COUNT_CODE_DUEL) e2:SetCountLimit(1,EFFECT_COUNT_CODE_DUEL)
e2:SetOperation(c16100013.operation) e2:SetOperation(c16100013.operation)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
...@@ -35,8 +35,7 @@ function c16100013.filter1(c) ...@@ -35,8 +35,7 @@ function c16100013.filter1(c)
end end
-- --
function c16100013.op(e,tp,eg,ep,ev,re,r,rp) function c16100013.op(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetFieldGroup(e:GetHandlerPlayer(),LOCATION_MZONE+LOCATION_HAND,0) if not Duel.IsExistingMatchingCard(c16100013.filter,tp,LOCATION_MZONE+LOCATION_HAND,0,1,nil) then
if not g:IsExists(c16100013.filter,1,nil) then
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_REMOVE) e1:SetCode(EFFECT_CANNOT_REMOVE)
...@@ -44,10 +43,9 @@ function c16100013.op(e,tp,eg,ep,ev,re,r,rp) ...@@ -44,10 +43,9 @@ function c16100013.op(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_PHASE+PHASE_END,2) e1:SetReset(RESET_PHASE+PHASE_END,2)
e1:SetTargetRange(1,0) e1:SetTargetRange(1,0)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end else
if g:IsExists(c16100013.filter,1,nil) then
Duel.SpecialSummon(e:GetHandler(),0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(e:GetHandler(),0,tp,tp,false,false,POS_FACEUP)
end end
end end
-- --
function c16100013.discon(e,tp,eg,ep,ev,re,r,rp) function c16100013.discon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -95,7 +95,6 @@ function c16100014.op1(e,tp,eg,ep,ev,re,r,rp) ...@@ -95,7 +95,6 @@ function c16100014.op1(e,tp,eg,ep,ev,re,r,rp)
local tg=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS) local tg=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS)
if not tg or tg:FilterCount(Card.IsRelateToEffect,nil,e)~=3 then return end if not tg or tg:FilterCount(Card.IsRelateToEffect,nil,e)~=3 then return end
Duel.SendtoDeck(tg,nil,0,REASON_EFFECT) Duel.SendtoDeck(tg,nil,0,REASON_EFFECT)
Duel.ShuffleDeck(tp)
local g=Duel.GetOperatedGroup() local g=Duel.GetOperatedGroup()
local ct0=g:FilterCount(Card.IsLocation,nil,LOCATION_DECK+LOCATION_EXTRA) local ct0=g:FilterCount(Card.IsLocation,nil,LOCATION_DECK+LOCATION_EXTRA)
if ct0==3 then if ct0==3 then
...@@ -121,7 +120,7 @@ function c16100014.op1(e,tp,eg,ep,ev,re,r,rp) ...@@ -121,7 +120,7 @@ function c16100014.op1(e,tp,eg,ep,ev,re,r,rp)
if Duel.Draw(tp,1,REASON_EFFECT)==0 then return end if Duel.Draw(tp,1,REASON_EFFECT)==0 then return end
local dg=Duel.GetOperatedGroup() local dg=Duel.GetOperatedGroup()
local dc=dg:GetFirst() local dc=dg:GetFirst()
if Duel.GetMZoneCount(tp)>0 and dc:IsCanBeSpecialSummoned(e,0,tp,false,false) if Duel.GetMZoneCount(tp)>0 and dc:IsCanBeSpecialSummoned(e,0,tp,false,false) and dc:IsSetCard(0xcc0)
and Duel.SelectYesNo(tp,aux.Stringid(16100014,4)) then and Duel.SelectYesNo(tp,aux.Stringid(16100014,4)) then
local lp=Duel.GetLP(tp) local lp=Duel.GetLP(tp)
Duel.SetLP(tp,lp-2000) Duel.SetLP(tp,lp-2000)
...@@ -140,7 +139,7 @@ function c16100014.op1(e,tp,eg,ep,ev,re,r,rp) ...@@ -140,7 +139,7 @@ function c16100014.op1(e,tp,eg,ep,ev,re,r,rp)
if Duel.Draw(tp,1,REASON_EFFECT)==0 then return end if Duel.Draw(tp,1,REASON_EFFECT)==0 then return end
local dg=Duel.GetOperatedGroup() local dg=Duel.GetOperatedGroup()
local dc=dg:GetFirst() local dc=dg:GetFirst()
if Duel.GetMZoneCount(tp)>0 and dc:IsCanBeSpecialSummoned(e,0,tp,false,false) if Duel.GetMZoneCount(tp)>0 and dc:IsCanBeSpecialSummoned(e,0,tp,false,false) and dc:IsSetCard(0xcc0)
and Duel.SelectYesNo(tp,aux.Stringid(16100014,4)) then and Duel.SelectYesNo(tp,aux.Stringid(16100014,4)) then
local lp=Duel.GetLP(tp) local lp=Duel.GetLP(tp)
Duel.SetLP(tp,lp-2000) Duel.SetLP(tp,lp-2000)
......
...@@ -83,7 +83,7 @@ function cm.cfilter(c) ...@@ -83,7 +83,7 @@ function cm.cfilter(c)
return c:IsFacedown() or not c:IsSetCard(0x7f0) return c:IsFacedown() or not c:IsSetCard(0x7f0)
end end
function cm.descon(e) function cm.descon(e)
return not Duel.IsExistingMatchingCard(cm.cfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil) return not Duel.IsExistingMatchingCard(cm.cfilter,e:GetHandlerPlayer(),LOCATION_ONFIELD,0,1,nil)
end end
function cm.destg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end
......
...@@ -118,6 +118,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -118,6 +118,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp,c)
end end
function cm.ctop(e,tp,eg,ep,ev,re,r,rp) function cm.ctop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SOUND,0,aux.Stringid(17061153,4)) Duel.Hint(HINT_SOUND,0,aux.Stringid(17061153,4))
Duel.Hint(HINT_CARD,0,17061153)
Duel.SetLP(tp,1) Duel.SetLP(tp,1)
e:GetHandler():AddCounter(0x7f3,3) e:GetHandler():AddCounter(0x7f3,3)
end end
......
...@@ -12,7 +12,7 @@ function cm.initial_effect(c) ...@@ -12,7 +12,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
--recover --recover
local e5=Effect.CreateEffect(c) local e5=Effect.CreateEffect(c)
e5:SetDescription(aux.Stringid(m,1)) e5:SetDescription(aux.Stringid(17061156,1))
e5:SetCategory(CATEGORY_DRAW+CATEGORY_RECOVER) e5:SetCategory(CATEGORY_DRAW+CATEGORY_RECOVER)
e5:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F) e5:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e5:SetCode(EVENT_PHASE+PHASE_END) e5:SetCode(EVENT_PHASE+PHASE_END)
...@@ -38,6 +38,7 @@ function cm.rectg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -38,6 +38,7 @@ function cm.rectg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_RECOVER,nil,0,tp,5000) Duel.SetOperationInfo(0,CATEGORY_RECOVER,nil,0,tp,5000)
end end
function cm.recop(e,tp,eg,ep,ev,re,r,rp) function cm.recop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,17061156)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
local ct=5-Duel.GetFieldGroupCount(tp,LOCATION_HAND,0) local ct=5-Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)
if ct>0 then if ct>0 then
......
...@@ -36,10 +36,10 @@ function cm.splimit(e,c,sump,sumtype,sumpos,targetp,se) ...@@ -36,10 +36,10 @@ function cm.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return not se:GetHandler():IsSetCard(0x5349)and not c:IsCode(33403500) return not se:GetHandler():IsSetCard(0x5349)and not c:IsCode(33403500)
end end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
local b1=Duel.GetFieldGroupCount(tp,0,LOCATION_REMOVED+LOCATION_GRAVE+LOCATION_ONFIELD) local b1=Duel.IsExistingMatchingCard(aux.disfilter1,tp,0,LOCATION_REMOVED+LOCATION_GRAVE+LOCATION_ONFIELD,1,nil)
local b2=Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_MZONE,0,1,nil,33403500) local b2=Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_MZONE,0,1,nil,33403500)
if chkc then return true end if chkc then return true end
if chk==0 then return b1>0 or b2>0 end if chk==0 then return b1 or b2 end
if e:GetLabel()==1 then if e:GetLabel()==1 then
local c=e:GetHandler() local c=e:GetHandler()
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
...@@ -83,7 +83,7 @@ function cm.regop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -83,7 +83,7 @@ function cm.regop2(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.activate(e,tp,eg,ep,ev,re,r,rp) function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local b1=Duel.GetFieldGroupCount(tp,0,LOCATION_REMOVED+LOCATION_GRAVE+LOCATION_ONFIELD) local b1=Duel.IsExistingMatchingCard(aux.disfilter1,tp,0,LOCATION_REMOVED+LOCATION_GRAVE+LOCATION_ONFIELD,1,nil)
local b2=Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_MZONE,0,1,nil,33403500) local b2=Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_MZONE,0,1,nil,33403500)
if not (b1 or b2) then return end if not (b1 or b2) then return end
local op local op
...@@ -95,7 +95,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -95,7 +95,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
if op==0 then if op==0 then
local ct=Duel.GetFlagEffect(tp,33403501) local ct=Duel.GetFlagEffect(tp,33403501)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPPO) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPPO)
local tg=Duel.SelectMatchingCard(tp,nil,tp,0,LOCATION_ONFIELD+LOCATION_GRAVE+LOCATION_REMOVED,1,ct,nil) local tg=Duel.SelectMatchingCard(tp,aux.disfilter1,tp,0,LOCATION_ONFIELD+LOCATION_GRAVE+LOCATION_REMOVED,1,ct,nil)
local tc=tg:GetFirst() local tc=tg:GetFirst()
while tc do while tc do
Duel.NegateRelatedChain(tc,RESET_TURN_SET) Duel.NegateRelatedChain(tc,RESET_TURN_SET)
......
...@@ -172,7 +172,7 @@ function c53703004.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -172,7 +172,7 @@ function c53703004.desop(e,tp,eg,ep,ev,re,r,rp)
local pg=Duel.SelectMatchingCard(tp,c53703004.pen2filter,tp,LOCATION_DECK,0,1,1,nil) local pg=Duel.SelectMatchingCard(tp,c53703004.pen2filter,tp,LOCATION_DECK,0,1,1,nil)
local tc=pg:GetFirst() local tc=pg:GetFirst()
if tc then if tc then
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true) Duel.MoveToField(tc,tp,tp,LOCATION_PZONE,POS_FACEUP,true)
end end
end end
end end
...@@ -95,14 +95,14 @@ function c53703009.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -95,14 +95,14 @@ function c53703009.spop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,c53703009.penfilter,tp,LOCATION_HAND,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c53703009.penfilter,tp,LOCATION_HAND,0,1,1,nil)
local tc=g:GetFirst() local tc=g:GetFirst()
if tc then if tc then
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true) Duel.MoveToField(tc,tp,tp,LOCATION_PZONE,POS_FACEUP,true)
end end
end end
if Duel.GetTurnPlayer()==tp then if Duel.GetTurnPlayer()==tp then
local g=Duel.SelectMatchingCard(tp,c53703009.penfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c53703009.penfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,1,nil)
local tc=g:GetFirst() local tc=g:GetFirst()
if tc then if tc then
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true) Duel.MoveToField(tc,tp,tp,LOCATION_PZONE,POS_FACEUP,true)
end end
end end
end end
...@@ -85,7 +85,7 @@ function c53703010.penop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -85,7 +85,7 @@ function c53703010.penop2(e,tp,eg,ep,ev,re,r,rp)
local ct2=Duel.Remove(gg,POS_FACEUP,REASON_EFFECT) local ct2=Duel.Remove(gg,POS_FACEUP,REASON_EFFECT)
if e:GetHandler():IsRelateToEffect(e) and ct1+ct2==3 if e:GetHandler():IsRelateToEffect(e) and ct1+ct2==3
and (Duel.CheckLocation(tp,LOCATION_PZONE,0) or Duel.CheckLocation(tp,LOCATION_PZONE,1)) then and (Duel.CheckLocation(tp,LOCATION_PZONE,0) or Duel.CheckLocation(tp,LOCATION_PZONE,1)) then
Duel.MoveToField(e:GetHandler(),tp,tp,LOCATION_SZONE,POS_FACEUP,true) Duel.MoveToField(e:GetHandler(),tp,tp,LOCATION_PZONE,POS_FACEUP,true)
end end
end end
function c53703010.target(e,tp,eg,ep,ev,re,r,rp,chk) function c53703010.target(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -90,7 +90,7 @@ end ...@@ -90,7 +90,7 @@ end
function c53703012.damop(e,tp,eg,ep,ev,re,r,rp) function c53703012.damop(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsRelateToEffect(e) if e:GetHandler():IsRelateToEffect(e)
and (Duel.CheckLocation(tp,LOCATION_PZONE,0) or Duel.CheckLocation(tp,LOCATION_PZONE,1)) then and (Duel.CheckLocation(tp,LOCATION_PZONE,0) or Duel.CheckLocation(tp,LOCATION_PZONE,1)) then
Duel.MoveToField(e:GetHandler(),tp,tp,LOCATION_SZONE,POS_FACEUP,true) Duel.MoveToField(e:GetHandler(),tp,tp,LOCATION_PZONE,POS_FACEUP,true)
end end
end end
function c53703012.spcost(e,c,tp) function c53703012.spcost(e,c,tp)
......
...@@ -75,7 +75,7 @@ function c53703013.penop(e,tp,eg,ep,ev,re,r,rp) ...@@ -75,7 +75,7 @@ function c53703013.penop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,c53703013.penfilter,tp,LOCATION_DECK,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c53703013.penfilter,tp,LOCATION_DECK,0,1,1,nil)
local tc=g:GetFirst() local tc=g:GetFirst()
if tc then if tc then
Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true) Duel.MoveToField(tc,tp,tp,LOCATION_PZONE,POS_FACEUP,true)
end end
local c=e:GetHandler() local c=e:GetHandler()
local e5=Effect.CreateEffect(c) local e5=Effect.CreateEffect(c)
......
...@@ -56,7 +56,7 @@ function c65071158.tgfil2(c,tp) ...@@ -56,7 +56,7 @@ function c65071158.tgfil2(c,tp)
return c:IsAbleToGrave() and c:IsType(TYPE_SPELL+TYPE_TRAP) return c:IsAbleToGrave() and c:IsType(TYPE_SPELL+TYPE_TRAP)
end end
function c65071158.tgfil3(c,tp) function c65071158.tgfil3(c,tp)
return c:IsSSetable() and (Duel.GetLocationCount(tp,LOCATION_SZONE)>0 or c:IsType(TYPE_FIELD) and (c:IsType(TYPE_QUICKPLAY) or (c:IsType(TYPE_NORMAL) and c:IsType(TYPE_TRAP))) return c:IsSSetable() and (Duel.GetLocationCount(tp,LOCATION_SZONE)>0 or c:IsType(TYPE_FIELD)) and (c:IsType(TYPE_QUICKPLAY) or (c:IsType(TYPE_NORMAL) and c:IsType(TYPE_TRAP)))
end end
function c65071158.tg(e,tp,eg,ep,ev,re,r,rp,chk) function c65071158.tg(e,tp,eg,ep,ev,re,r,rp,chk)
local b1=Duel.GetCounter(tp,LOCATION_ONFIELD,LOCATION_ONFIELD,0x1da0)>=6 and Duel.IsExistingMatchingCard(c65071158.tgfil1,tp,LOCATION_DECK,0,1,nil,tp) local b1=Duel.GetCounter(tp,LOCATION_ONFIELD,LOCATION_ONFIELD,0x1da0)>=6 and Duel.IsExistingMatchingCard(c65071158.tgfil1,tp,LOCATION_DECK,0,1,nil,tp)
......
...@@ -56,7 +56,7 @@ function c75646009.immop(e,tp,eg,ep,ev,re,r,rp) ...@@ -56,7 +56,7 @@ function c75646009.immop(e,tp,eg,ep,ev,re,r,rp)
end end
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
function c75646009.effilter(c) function c75646009.effilter(e,c)
return c:IsSetCard(0x2c0) or c:IsSetCard(0xc2c1) return c:IsSetCard(0x2c0) or c:IsSetCard(0xc2c1)
end end
function c75646009.efilter(e,re) function c75646009.efilter(e,re)
......
...@@ -38,7 +38,7 @@ end ...@@ -38,7 +38,7 @@ end
function cm.eqfilter(c) function cm.eqfilter(c)
return c:IsSetCard(0xc2c1) and c:IsType(TYPE_MONSTER) return c:IsSetCard(0xc2c1) and c:IsType(TYPE_MONSTER)
end end
function cm.cfilter(c) function cm.cfilter(c,tp)
if c:IsLocation(LOCATION_ONFIELD) then return c:IsSetCard(0xc2c1) and c:IsFaceup() and c:IsAbleToGraveAsCost() and Duel.IsExistingTarget(cm.eqfilter,tp,LOCATION_GRAVE,0,1,nil) end if c:IsLocation(LOCATION_ONFIELD) then return c:IsSetCard(0xc2c1) and c:IsFaceup() and c:IsAbleToGraveAsCost() and Duel.IsExistingTarget(cm.eqfilter,tp,LOCATION_GRAVE,0,1,nil) end
return c:IsAbleToRemoveAsCost() and c:IsHasEffect(75646911) and Duel.IsExistingTarget(cm.eqfilter,tp,LOCATION_GRAVE,0,1,nil) return c:IsAbleToRemoveAsCost() and c:IsHasEffect(75646911) and Duel.IsExistingTarget(cm.eqfilter,tp,LOCATION_GRAVE,0,1,nil)
end end
...@@ -48,10 +48,10 @@ function cm.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -48,10 +48,10 @@ function cm.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if e:GetLabel()~=100 then return false end if e:GetLabel()~=100 then return false end
e:SetLabel(0) e:SetLabel(0)
return Duel.GetLocationCount(tp,LOCATION_SZONE)>0 return Duel.GetLocationCount(tp,LOCATION_SZONE)>0
and Duel.IsExistingTarget(cm.cfilter,tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,1,e:GetHandler()) and Duel.IsExistingTarget(cm.cfilter,tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,1,e:GetHandler(),tp)
end end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,cm.cfilter,tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,1,1,e:GetHandler()) local g=Duel.SelectMatchingCard(tp,cm.cfilter,tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,1,1,e:GetHandler(),tp)
local tc=g:GetFirst() local tc=g:GetFirst()
local te=tc:IsHasEffect(75646911,tp) local te=tc:IsHasEffect(75646911,tp)
local tn=nil local tn=nil
......
...@@ -48,7 +48,7 @@ function cm.tgcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -48,7 +48,7 @@ function cm.tgcost(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(100) e:SetLabel(100)
if chk==0 then return true end if chk==0 then return true end
end end
function cm.cfilter(c) function cm.cfilter(c,tp)
if c:IsLocation(LOCATION_ONFIELD) then return c:IsAbleToGraveAsCost() and Duel.IsExistingTarget(Card.IsAbleToGrave,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,c) end if c:IsLocation(LOCATION_ONFIELD) then return c:IsAbleToGraveAsCost() and Duel.IsExistingTarget(Card.IsAbleToGrave,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,c) end
return c:IsAbleToRemoveAsCost() and c:IsHasEffect(75646911) and Duel.IsExistingTarget(Card.IsAbleToGrave,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) return c:IsAbleToRemoveAsCost() and c:IsHasEffect(75646911) and Duel.IsExistingTarget(Card.IsAbleToGrave,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil)
end end
...@@ -57,10 +57,10 @@ function cm.tgtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -57,10 +57,10 @@ function cm.tgtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then if chk==0 then
if e:GetLabel()~=100 then return false end if e:GetLabel()~=100 then return false end
e:SetLabel(0) e:SetLabel(0)
return Duel.IsExistingTarget(cm.cfilter,tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,1,nil) return Duel.IsExistingTarget(cm.cfilter,tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,1,nil,tp)
end end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,cm.cfilter,tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,cm.cfilter,tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,1,1,nil,tp)
local tc=g:GetFirst() local tc=g:GetFirst()
local te=tc:IsHasEffect(75646911) local te=tc:IsHasEffect(75646911)
if te then if te 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