Commit 8a9f1758 authored by REIKAI's avatar REIKAI 💬

rep scripts and cdb

parent f05bf249
No preview for this file type
...@@ -85,13 +85,19 @@ function c33200907.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -85,13 +85,19 @@ function c33200907.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,c33200907.setfilter,tp,LOCATION_DECK,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c33200907.setfilter,tp,LOCATION_DECK,0,1,1,nil)
local tc2=g:GetFirst() local tc2=g:GetFirst()
if tc2 and Duel.SSet(tp,tc2)~=0 then if tc2 and Duel.SSet(tp,tc2)~=0 then
if tc2:IsType(TYPE_QUICKPLAY) then if tc2:IsType(TYPE_QUICKPLAY) or tc2:IsType(TYPE_TRAP) then
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_SET_AVAILABLE) e1:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
e1:SetCode(EFFECT_QP_ACT_IN_SET_TURN) e1:SetCode(EFFECT_QP_ACT_IN_SET_TURN)
e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetReset(RESET_EVENT+RESETS_STANDARD)
tc2:RegisterEffect(e1) tc2:RegisterEffect(e1)
local e2=Effect.CreateEffect(e:GetHandler())
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_TRAP_ACT_IN_SET_TURN)
e2:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
tc2:RegisterEffect(e1)
end end
Duel.SendtoExtraP(e:GetHandler(),tp,REASON_EFFECT) Duel.SendtoExtraP(e:GetHandler(),tp,REASON_EFFECT)
end end
......
...@@ -117,8 +117,8 @@ function c33200917.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -117,8 +117,8 @@ function c33200917.target(e,tp,eg,ep,ev,re,r,rp,chk)
local fc=Duel.GetFlagEffect(tp,33200917) local fc=Duel.GetFlagEffect(tp,33200917)
if fc>8 then fc=8 end if fc>8 then fc=8 end
local cc=10-fc local cc=10-fc
if chk==0 then return Duel.IsCanRemoveCounter(tp,LOCATION_ONFIELD,LOCATION_ONFIELD,0x132a,cc,REASON_EFFECT) and c:GetFlagEffect(33200917)==0 end if chk==0 then return Duel.IsCanRemoveCounter(tp,LOCATION_ONFIELD,LOCATION_ONFIELD,0x132a,cc,REASON_EFFECT) and c:GetFlagEffect(33200918)==0 end
c:RegisterFlagEffect(33200917,RESET_CHAIN,0,1) c:RegisterFlagEffect(33200918,RESET_CHAIN,0,1)
Duel.SetOperationInfo(0,CATEGORY_NEGATE,eg,1,0,0) Duel.SetOperationInfo(0,CATEGORY_NEGATE,eg,1,0,0)
end end
function c33200917.operation(e,tp,eg,ep,ev,re,r,rp) function c33200917.operation(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -20,7 +20,7 @@ function cm.initial_effect(c) ...@@ -20,7 +20,7 @@ function cm.initial_effect(c)
e2:SetCode(EVENT_FREE_CHAIN) e2:SetCode(EVENT_FREE_CHAIN)
e2:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE) e2:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetCountLimit(1,m) e2:SetCountLimit(1,m+1)
e2:SetTarget(cm.destg) e2:SetTarget(cm.destg)
e2:SetOperation(cm.desop) e2:SetOperation(cm.desop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
......
...@@ -40,7 +40,7 @@ function c67200406.initial_effect(c) ...@@ -40,7 +40,7 @@ function c67200406.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c67200406.excostfilter(c) function c67200406.excostfilter(c)
return c:IsSetCard(0x5671) and c:IsAbleToHandAsCost() return c:IsSetCard(0x5671) and c:IsAbleToHandAsCost() and c:IsType(TYPE_MONSTER)
end end
function c67200406.mfilter(c,tp) function c67200406.mfilter(c,tp)
--local tp=c:GetControler() --local tp=c:GetControler()
......
...@@ -41,7 +41,7 @@ function c67200408.initial_effect(c) ...@@ -41,7 +41,7 @@ function c67200408.initial_effect(c)
end end
-- --
function c67200408.excostfilter(c) function c67200408.excostfilter(c)
return c:IsSetCard(0x5671) and c:IsAbleToHandAsCost() return c:IsSetCard(0x5671) and c:IsAbleToHandAsCost() and c:IsType(TYPE_MONSTER)
end end
function c67200408.mfilter(c,tp) function c67200408.mfilter(c,tp)
--local tp=c:GetControler() --local tp=c:GetControler()
......
...@@ -49,7 +49,7 @@ end ...@@ -49,7 +49,7 @@ end
-- --
function c67200410.rfilter(c,tp) function c67200410.rfilter(c,tp)
--local tp=c:GetControler() --local tp=c:GetControler()
return c:IsFaceup() and c:IsSetCard(0x5671) and c:IsAbleToHand() and not c:IsCode(67200410) return c:IsFaceup() and c:IsSetCard(0x5671) and c:IsAbleToHand() and not c:IsCode(67200410) and c:IsType(TYPE_MONSTER)
end end
function c67200410.mfilter(c,tp) function c67200410.mfilter(c,tp)
......
...@@ -41,7 +41,7 @@ function c67200414.initial_effect(c) ...@@ -41,7 +41,7 @@ function c67200414.initial_effect(c)
end end
-- --
function c67200414.excostfilter(c) function c67200414.excostfilter(c)
return c:IsSetCard(0x5671) and c:IsAbleToHandAsCost() return c:IsSetCard(0x5671) and c:IsAbleToHandAsCost() and c:IsType(TYPE_MONSTER)
end end
function c67200414.mfilter(c,tp) function c67200414.mfilter(c,tp)
--local tp=c:GetControler() --local tp=c:GetControler()
......
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