Commit 7d8ed794 authored by Tachibana's avatar Tachibana

ybb

parent 6906a6c8
...@@ -11,7 +11,6 @@ function cm.initial_effect(c) ...@@ -11,7 +11,6 @@ function cm.initial_effect(c)
e2:SetType(EFFECT_TYPE_IGNITION) e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_SZONE)
e2:SetCountLimit(1,m+100) e2:SetCountLimit(1,m+100)
e2:SetCondition(cm.sscon)
e2:SetCost(cm.sscost) e2:SetCost(cm.sscost)
e2:SetTarget(cm.sstg) e2:SetTarget(cm.sstg)
e2:SetOperation(cm.ssop) e2:SetOperation(cm.ssop)
...@@ -83,8 +82,12 @@ function cm.solvefun(g,tp) ...@@ -83,8 +82,12 @@ function cm.solvefun(g,tp)
Duel.SendtoGrave(tc,REASON_EFFECT) Duel.SendtoGrave(tc,REASON_EFFECT)
end end
end end
function cm.ssfilter(c) function cm.sscost(e,tp,eg,ep,ev,re,r,rp,chk)
return c:IsCode(m) and c:IsSSetable() if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,nil) end
Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD)
end
function cm.thcheck(c)
return (c:IsSetCard(0x1ce0) or c:IsSetCard(0x389)) and c:IsAbleToHand()
end end
function cm.sstg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.sstg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.thcheck,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(cm.thcheck,tp,LOCATION_DECK,0,1,nil) end
......
--圣杯的探索-Emiya --圣杯的探索-Emiya
local m=16499990
local cm=_G["c"..m]
function c16499990.initial_effect(c) function c16499990.initial_effect(c)
--spsummon --spsummon
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
...@@ -15,7 +17,7 @@ function c16499990.initial_effect(c) ...@@ -15,7 +17,7 @@ function c16499990.initial_effect(c)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e2:SetCode(EVENT_BE_MATERIAL) e2:SetCode(EVENT_BE_MATERIAL)
e2:SetProperty(EFFECT_FLAG_EVENT_PLAYER) e2:SetProperty(EFFECT_FLAG_EVENT_PLAYER)
e2:SetCountLimit(1,m+100) e2:SetCountLimit(1,16499991)
e2:SetCondition(c16499990.effcon) e2:SetCondition(c16499990.effcon)
e2:SetOperation(c16499990.effop) e2:SetOperation(c16499990.effop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
...@@ -23,9 +25,8 @@ function c16499990.initial_effect(c) ...@@ -23,9 +25,8 @@ function c16499990.initial_effect(c)
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e3:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e3:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH)
e3:SetDescription(aux.Stringid(m,1)) e3:SetDescription(aux.Stringid(16499990,1))
e3:SetCode(EVENT_TO_GRAVE) e3:SetCode(EVENT_TO_GRAVE)
e3:SetCountLimit(1,m)
e3:SetCondition(c16499990.condtion) e3:SetCondition(c16499990.condtion)
e3:SetTarget(c16499990.target) e3:SetTarget(c16499990.target)
e3:SetOperation(c16499990.operation) e3:SetOperation(c16499990.operation)
......
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