Commit d9610350 authored by Tachibana's avatar Tachibana

得得得得得

parent 8e37abdf
Pipeline #12114 passed with stages
in 32 minutes
......@@ -3,20 +3,20 @@ xpcall(function() require("expansions/script/c17035101") end,function() require(
function c17032770.initial_effect(c)
chiki.reposcon(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(17032850,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1,17032850)
e1:SetCondition(chiki.poccon)
e1:SetTarget(c17032770.cptg)
e1:SetOperation(c17032770.cpop)
c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(17032850,0))
e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1,17032850)
e2:SetCondition(chiki.poccon)
e2:SetTarget(c17032770.cptg)
e2:SetOperation(c17032770.cpop)
c:RegisterEffect(e2)
end
function c17032770.cpfilter(c)
return c:IsSetCard(0x97f3) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToDeck() and c:CheckActivateEffect(false,true,false)~=nil
return c:IsSetCard(0x97f3) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:CheckActivateEffect(false,true,false)~=nil
end
function c17032770.cptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then
......
......@@ -906,10 +906,11 @@ function Chikichikibanban.handspop(self_location,opponent_location,op,controler,
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
if ft<=0 then return end
if ft>maxc then ft=maxc elseif Duel.IsPlayerAffectedByEffect(tp,59822133) then ft=1 end
if minc>ft then minc=ft end
local g=Duel.GetFieldGroup(tp,self_location,opponent_location)
local sg=g:Filter(Chikichikibanban.handspfilter,nil,e,controler,f)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local tg=sg:SelectSubGroup(tp,Chikichikibanban.SpecialSummonProcedureFreeGoal2,false,minc,maxc,controler,gf)
local tg=sg:SelectSubGroup(tp,Chikichikibanban.SpecialSummonProcedureFreeGoal2,false,minc,ft,controler,gf)
if tg:GetCount()>0 then
Duel.SpecialSummon(tg,0,tp,controler,false,false,POS_FACEUP)
if op then Duel.BreakEffect() op(e,tp,eg,ep,ev,re,r,rp,1,e:GetHandler()) end
......@@ -934,9 +935,9 @@ function Chikichikibanban.reposcon(c,c_location,tg,op,con,etype,gategory,...)
local c_location=c_location
if not c_location then c_location=LOCATION_HAND end
local tg=tg
if not tg then tg=chiki.sptg end
if not tg then tg=Chikichikibanban.sptg end
local op=op
if not op then op=chiki.spop end
if not op then op=Chikichikibanban.spop end
if not gategory then gategory=CATEGORY_SPECIAL_SUMMON end
if not etype then etype=EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O end
local limt={...}
......@@ -954,9 +955,10 @@ function Chikichikibanban.reposcon(c,c_location,tg,op,con,etype,gategory,...)
e1:SetTarget(tg)
e1:SetOperation(op)
c:RegisterEffect(e1)
return e1
end
function Chikichikibanban.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end
......@@ -999,6 +1001,7 @@ function Chikichikibanban.reposcost(e,tp,eg,ep,ev,re,r,rp)
e1:SetCode(EFFECT_CANNOT_ATTACK)
e1:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE+EFFECT_FLAG_OATH)
e1:SetTargetRange(LOCATION_MZONE,0)
e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
end
......
......@@ -29,7 +29,7 @@ function cm.initial_effect(c)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e3:SetCode(EVENT_SPSUMMON_SUCCESS)
e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1,m)
e3:SetCountLimit(1)
e3:SetCondition(cm.drcon)
e3:SetCost(cm.dacost)
e3:SetTarget(cm.drtg)
......@@ -43,7 +43,7 @@ function cm.initial_effect(c)
e4:SetProperty(EFFECT_FLAG_DELAY)
e4:SetCode(EVENT_PAY_LPCOST)
e4:SetRange(LOCATION_MZONE)
e4:SetCountLimit(1,m+900)
e4:SetCountLimit(1,m)
e4:SetCondition(cm.thcon)
e4:SetTarget(cm.thtg)
e4:SetOperation(cm.thop)
......
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