Commit 81091c2e authored by TanakaKotoha's avatar TanakaKotoha

fix

parent e167bdb8
No preview for this file type
......@@ -302,7 +302,6 @@
26802002 2 --偶像新人的初登场
26803007 0 --惬意世界
26806013 1 --心灵之绘·海伊
26805005 1 --黛冬优子
26807033 1 --小巷探秘
26807046 0 --被雨淋湿不知所措
26805007 0 --西京夏日约会
......
......@@ -3,6 +3,12 @@ if not pcall(function() require("expansions/script/c10199990") end) then require
local m,cm=rsof.DefineCard(33310100,"Cochrot")
function cm.initial_effect(c)
c:EnableReviveLimit()
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e0:SetCode(EVENT_SPSUMMON_SUCCESS)
e0:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_CANNOT_NEGATE)
e0:SetOperation(cm.skipop)
c:RegisterEffect(e0)
local e1=rsef.SC(c,EVENT_SPSUMMON_SUCCESS,nil,nil,nil,rscon.sumtype("rit"),cm.atkop)
local e2,e3=rsef.SV_INDESTRUCTABLE(c,"battle,effect")
local e4=rsef.RegisterClone(c,e3,"code",EFFECT_AVOID_BATTLE_DAMAGE)
......@@ -14,6 +20,9 @@ function cm.initial_effect(c)
c:RegisterEffect(e5)
local e6=rsef.STO(c,EVENT_REMOVE,{m,0},nil,nil,"de,dsp",nil,nil,rsop.target(cm.actfilter,nil,LOCATION_GRAVE+LOCATION_DECK),cm.actop)
end
function cm.skipop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_MUSIC,0,aux.Stringid(33310100,0))
end
function cm.atkop(e,tp)
local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,0,LOCATION_MZONE,nil)
if #g<=0 then return end
......
......@@ -3,7 +3,7 @@ if not pcall(function() require("expansions/script/c10199990") end) then require
local m,cm=rsof.DefineCard(33310101)
function cm.initial_effect(c)
local e1=rsef.ACT(c)
local e2=rsef.QO(c,nil,{m,0},{1,0x1},"tg",nil,LOCATION_SZONE,nil,nil,rsop.target2(cm.fun,cm.copyfilter,"tg",LOCATION_DECK),cm.copyop)
local e2=rsef.QO(c,nil,{m,0},{1,0x1},"tg",nil,LOCATION_SZONE,nil,nil,rsop.target2(cm.fun,cm.copyfilter,"tg",LOCATION_DECK+LOCATION_HAND),cm.copyop)
local e3=rsef.QO(c,nil,{m,1},{1,0x1},"dis",nil,LOCATION_SZONE,nil,nil,rsop.target(aux.disfilter1,"dis",0,LOCATION_ONFIELD),cm.disop)
local e4=rsef.QO(c,nil,{m,2},{1,0x1},nil,nil,LOCATION_SZONE,cm.skipcon,nil,nil,cm.skipop)
end
......@@ -13,7 +13,7 @@ function cm.copyfilter(c,e,tp)
end
function cm.copyop(e,tp)
rsof.SelectHint(tp,"tg")
local tc=Duel.SelectMatchingCard(tp,cm.copyfilter,tp,LOCATION_DECK,0,1,1,nil):GetFirst()
local tc=Duel.SelectMatchingCard(tp,cm.copyfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,1,nil):GetFirst()
if not tc or Duel.SendtoGrave(tc,REASON_EFFECT)<=0 or not tc:IsLocation(LOCATION_GRAVE) then return end
local te=tc:GetActivateEffect()
local op=te:GetOperation()
......
......@@ -35,7 +35,7 @@ function c33400314.initial_effect(c)
c:RegisterEffect(e3)
end
function c33400314.spfilter(c,fc,tp)
return c:IsReleasableByEffect() and c:IsSetCard(0x5341) and Duel.GetLocationCountFromEx(tp,tp,c,fc)>0
return c:IsReleasable() and c:IsSetCard(0x5341) and Duel.GetLocationCountFromEx(tp,tp,c,fc)>0
end
function c33400314.sprcon(e,c)
if c==nil then return true end
......
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