Commit 16665f0a authored by Tachibana's avatar Tachibana

得得得得得

parent 5003a48a
Pipeline #13466 passed with stages
in 24 minutes and 2 seconds
......@@ -56,12 +56,12 @@ function c17032790.operation(e,tp,eg,ep,ev,re,r,rp)
local ops={}
local opval={}
if b1 then
ops[off]=aux.Stringid(17032790,2)
ops[off]=1101
opval[off-1]=1
off=off+1
end
if b2 and #g>0 and tc~=c and tc:IsCanOverlay() then
ops[off]=aux.Stringid(17032790,3)
ops[off]=1152
opval[off-1]=2
off=off+1
end
......
......@@ -14,7 +14,7 @@ function c18019032.initial_effect(c)
e1:SetOperation(c18019032.thop)
c:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCountLimit(1,18019032+o)
e2:SetCountLimit(1,18019032+100)
e2:SetCondition(c18019032.thcon2)
c:RegisterEffect(e2)
end
......
......@@ -14,7 +14,7 @@ function c18019033.initial_effect(c)
e1:SetOperation(c18019033.thop)
c:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCountLimit(1,18019033+o)
e2:SetCountLimit(1,18019033+100)
e2:SetCondition(c18019033.thcon2)
c:RegisterEffect(e2)
end
......
......@@ -13,7 +13,7 @@ function c18019034.initial_effect(c)
e1:SetOperation(c18019034.regop)
c:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCountLimit(1,18019034+o)
e2:SetCountLimit(1,18019034+100)
e2:SetCondition(c18019034.thcon2)
c:RegisterEffect(e2)
end
......
......@@ -14,7 +14,7 @@ function c18019035.initial_effect(c)
e1:SetOperation(c18019035.setop)
c:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCountLimit(1,18019035+o)
e2:SetCountLimit(1,18019035+100)
e2:SetCondition(c18019035.setcon2)
c:RegisterEffect(e2)
end
......
......@@ -6,16 +6,28 @@ function c18019036.initial_effect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_CHAINING)
e1:SetCost(c18019036.cost)
e1:SetCountLimit(1,18019036)
e1:SetCondition(c18019036.condition)
e1:SetTarget(c18019036.target)
e1:SetOperation(c18019036.activate)
c:RegisterEffect(e1)
--act in hand
--draw
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_TRAP_ACT_IN_HAND)
e2:SetCondition(c18019036.handcon)
e2:SetCategory(CATEGORY_TODECK+CATEGORY_DRAW)
e2:SetDescription(aux.Stringid(18019036,1))
e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_FREE_CHAIN)
e2:SetRange(LOCATION_GRAVE)
e2:SetCountLimit(1,18019036+100)
e2:SetTarget(c18019036.tdtg)
e2:SetOperation(c18019036.tdop)
c:RegisterEffect(e2)
--act in hand
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(EFFECT_TRAP_ACT_IN_HAND)
e3:SetCondition(c18019036.handcon)
c:RegisterEffect(e3)
end
function c18019036.filter(c)
return c:IsSetCard(0x66e1) and c:IsType(TYPE_MONSTER) and c:IsDiscardable()
......@@ -55,3 +67,20 @@ function c18019036.handcon(e)
local ct=hg:GetClassCount(Card.GetCode)
return ct>=3
end
function c18019036.tdtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToDeck() and Duel.IsPlayerCanDraw(tp,1) end
Duel.SetOperationInfo(0,CATEGORY_TODECK,e:GetHandler(),1,0,0)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1)
end
function c18019036.tdop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) and Duel.SendtoDeck(c,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)~=0 and c:IsLocation(LOCATION_DECK) then
Duel.ShuffleDeck(tp)
local g=Duel.GetMatchingGroup(c18019036.filter,tp,LOCATION_HAND,0,e:GetHandler())
if #g>0 and Duel.SelectYesNo(tp,1108) then
Duel.BreakEffect()
Duel.DiscardHand(tp,c18019036.filter,1,1,REASON_EFFECT+REASON_DISCARD)
Duel.Draw(tp,1,REASON_EFFECT)
end
end
end
......@@ -37,7 +37,7 @@ function c71400033.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
function c71400033.operation(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and Duel.Destroy(tc,REASON_EFFECT)>0 and e:GetLabel==1 then
if tc:IsRelateToEffect(e) and Duel.Destroy(tc,REASON_EFFECT)>0 and e:GetLabel()==1 then
Duel.BreakEffect()
Duel.SetLP(tp,Duel.GetLP(tp)-1500)
local fc=Duel.GetFieldCard(tp,LOCATION_FZONE,0)
......
......@@ -39,7 +39,7 @@ end
function c71400066.tg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc~=e:GetHandler() end
if chk==0 then
return Duel.CheckLPCost(tc:GetControler(),500) and yume.YumeFieldCheck(tp,0,2,LOCATION_DECK+LOCATION_GRAVE+LOCATION_REMOVED)
return Duel.CheckLPCost(tp,1000) and yume.YumeFieldCheck(tp,0,2,LOCATION_DECK+LOCATION_GRAVE+LOCATION_REMOVED)
end
if not Duel.CheckPhaseActivity() then e:SetLabel(1) else e:SetLabel(0) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
......@@ -55,6 +55,11 @@ function c71400066.limit(c)
end
end
function c71400066.op1(e,tp,eg,ep,ev,re,r,rp)
if Duel.CheckLPCost(tc:GetControler(),1000) then
Duel.PayLPCost(tc:GetControler(),1000)
else
return
end
local tc=Duel.GetFirstTarget()
if yume.ActivateYumeField(e,tp,0,0,LOCATION_DECK+LOCATION_GRAVE+LOCATION_REMOVED) and tc:IsRelateToEffect(e) then
Duel.BreakEffect()
......@@ -71,7 +76,7 @@ end
function c71400066.tg1a(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc~=e:GetHandler() end
if chk==0 then
return Duel.CheckLPCost(tc:GetControler(),500) and yume.YumeFieldCheck(tp,0,2,LOCATION_DECK+LOCATION_GRAVE+LOCATION_REMOVED) and Duel.IsExistingMatchingCard(c71400066.filter1a,tp,LOCATION_DECK+LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil)
return Duel.CheckLPCost(tp,1000) and yume.YumeFieldCheck(tp,0,2,LOCATION_DECK+LOCATION_GRAVE+LOCATION_REMOVED) and Duel.IsExistingMatchingCard(c71400066.filter1a,tp,LOCATION_DECK+LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil)
end
if not Duel.CheckPhaseActivity() then e:SetLabel(1) else e:SetLabel(0) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
......@@ -83,6 +88,11 @@ function c71400066.tg1a(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function c71400066.op1a(e,tp,eg,ep,ev,re,r,rp)
if Duel.CheckLPCost(tc:GetControler(),1000) then
Duel.PayLPCost(tc:GetControler(),1000)
else
return
end
local tc=Duel.GetFirstTarget()
if yume.ActivateYumeField(e,tp,0,0,LOCATION_DECK+LOCATION_GRAVE+LOCATION_REMOVED) and tc:IsRelateToEffect(e) then
Duel.BreakEffect()
......
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