Commit 58207742 authored by salix5's avatar salix5

update: クリボー support cards

parent ef3a0701
--クリボーを呼ぶ笛 --クリボーを呼ぶ笛
function c20065322.initial_effect(c) function c20065322.initial_effect(c)
aux.AddCodeList(c,40640057)
--Activate --Activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH+CATEGORY_SPECIAL_SUMMON) e1:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH+CATEGORY_SPECIAL_SUMMON)
......
...@@ -26,16 +26,16 @@ function c30194529.initial_effect(c) ...@@ -26,16 +26,16 @@ function c30194529.initial_effect(c)
e2:SetOperation(c30194529.tgop) e2:SetOperation(c30194529.tgop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--spsummon --spsummon
local e5=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e5:SetDescription(aux.Stringid(30194529,2)) e3:SetDescription(aux.Stringid(30194529,2))
e5:SetCategory(CATEGORY_SPECIAL_SUMMON) e3:SetCategory(CATEGORY_SPECIAL_SUMMON)
e5:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e5:SetCode(EVENT_TO_GRAVE) e3:SetCode(EVENT_TO_GRAVE)
e5:SetProperty(EFFECT_FLAG_DELAY) e3:SetProperty(EFFECT_FLAG_DELAY)
e5:SetCondition(c30194529.spcon2) e3:SetCondition(c30194529.spcon2)
e5:SetTarget(c30194529.sptg2) e3:SetTarget(c30194529.sptg2)
e5:SetOperation(c30194529.spop2) e3:SetOperation(c30194529.spop2)
c:RegisterEffect(e5) c:RegisterEffect(e3)
end end
function c30194529.drcon(e,tp,eg,ep,ev,re,r,rp) function c30194529.drcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK) return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK)
......
--増殖 --増殖
function c40703222.initial_effect(c) function c40703222.initial_effect(c)
aux.AddCodeList(c,40640057)
--Activate --Activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
...@@ -10,17 +11,16 @@ function c40703222.initial_effect(c) ...@@ -10,17 +11,16 @@ function c40703222.initial_effect(c)
e1:SetOperation(c40703222.activate) e1:SetOperation(c40703222.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c40703222.cfilter(c) function c40703222.cfilter(c,tp)
return c:IsFaceup() and c:IsCode(40640057) return c:IsFaceup() and c:IsCode(40640057) and Duel.GetMZoneCount(tp,c)>0
end end
function c40703222.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c40703222.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,c40703222.cfilter,1,nil) end if chk==0 then return Duel.CheckReleaseGroup(tp,c40703222.cfilter,1,nil,tp) end
local g=Duel.SelectReleaseGroup(tp,c40703222.cfilter,1,1,nil) local g=Duel.SelectReleaseGroup(tp,c40703222.cfilter,1,1,nil,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c40703222.target(e,tp,eg,ep,ev,re,r,rp,chk) function c40703222.target(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.IsPlayerCanSpecialSummonMonster(tp,40703223,0,0x4011,300,200,1,RACE_FIEND,ATTRIBUTE_DARK) end
and Duel.IsPlayerCanSpecialSummonMonster(tp,40703223,0,TYPES_TOKEN_MONSTER,300,200,1,RACE_FIEND,ATTRIBUTE_DARK) end
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
if Duel.IsPlayerAffectedByEffect(tp,59822133) then ft=1 end if Duel.IsPlayerAffectedByEffect(tp,59822133) then ft=1 end
Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,ft,0,0) Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,ft,0,0)
...@@ -28,7 +28,7 @@ function c40703222.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -28,7 +28,7 @@ function c40703222.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c40703222.activate(e,tp,eg,ep,ev,re,r,rp) function c40703222.activate(e,tp,eg,ep,ev,re,r,rp)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
if ft<=0 or not Duel.IsPlayerCanSpecialSummonMonster(tp,40703223,0,TYPES_TOKEN_MONSTER,300,200,1,RACE_FIEND,ATTRIBUTE_DARK) then return end if ft<=0 or not Duel.IsPlayerCanSpecialSummonMonster(tp,40703223,0,0x4011,300,200,1,RACE_FIEND,ATTRIBUTE_DARK) then return end
if Duel.IsPlayerAffectedByEffect(tp,59822133) then ft=1 end if Duel.IsPlayerAffectedByEffect(tp,59822133) then ft=1 end
for i=1,ft do for i=1,ft do
local token=Duel.CreateToken(tp,40703223) local token=Duel.CreateToken(tp,40703223)
......
--機雷化 --機雷化
function c89086566.initial_effect(c) function c89086566.initial_effect(c)
aux.AddCodeList(c,40640057)
--Activate --Activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DESTROY) e1:SetCategory(CATEGORY_DESTROY)
......
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