Commit 413e4863 authored by POLYMER's avatar POLYMER

fix

parent 7a3f3574
No preview for this file type
......@@ -92,16 +92,20 @@ function c10200102.lvfilter2(c)
return c:IsPreviousLocation(LOCATION_MZONE)
end
function c10200102.lvcon2a(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c10200102.lvfilter2,1,nil)
local ct = eg:FilterCount(c10200102.lvfilter2,nil)
e:SetLabel(ct)
return ct > 0
end
function c10200102.lvcon2b(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c10200102.lvfilter2,1,nil)
and (r&(REASON_FUSION+REASON_SYNCHRO+REASON_XYZ+REASON_LINK))~=0
local ct = eg:FilterCount(c10200102.lvfilter2,nil)
e:SetLabel(ct)
return ct > 0 and (r&(REASON_FUSION+REASON_SYNCHRO+REASON_XYZ+REASON_LINK))~=0
end
function c10200102.lvop2(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsFaceup() and c:IsRelateToEffect(e) then
local ct=eg:FilterCount(c10200102.lvfilter2,nil)
-- 使用在condition阶段计算并存储的数量
local ct = e:GetLabel()
if ct>0 then
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
......@@ -162,7 +166,7 @@ function c10200102.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Release(e:GetHandler(),REASON_COST)
end
function c10200102.spfilter(c,e,tp)
return c:IsCode(10200104) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
return c:IsCode(10200104) and c:IsCanBeSpecialSummoned(e,0,tp,true,true)
end
function c10200102.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetMZoneCount(tp,e:GetHandler())>0
......@@ -175,6 +179,6 @@ function c10200102.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c10200102.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp)
if #g>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
Duel.SpecialSummon(g,0,tp,tp,true,true,POS_FACEUP)
end
end
......@@ -51,18 +51,18 @@ end
function c10200113.filter1111(c)
return c:IsFaceup() and c:IsSetCard(0x838) and c:IsType(TYPE_MONSTER)
end
function c10200113.con1(tp)
return Duel.IsExistingMatchingCard(c10200113.filter1111,tp,LOCATION_MZONE,0,1,nil)
function c10200113.con1(tp,handler)
return Duel.IsExistingMatchingCard(c10200113.filter1111,tp,LOCATION_MZONE,0,1,handler)
end
function c10200113.tg1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c10200113.filter11,tp,LOCATION_DECK,0,1,nil)
or (c10200113.con1(tp) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
or (c10200113.con1(tp,e:GetHandler()) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c10200113.filter111,tp,LOCATION_DECK,0,1,nil,e,tp)) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
function c10200113.op1(e,tp,eg,ep,ev,re,r,rp)
local b1=Duel.IsExistingMatchingCard(c10200113.filter11,tp,LOCATION_DECK,0,1,nil)
local b2=c10200113.con1(tp) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
local b2=c10200113.con1(tp,e:GetHandler()) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c10200113.filter111,tp,LOCATION_DECK,0,1,nil,e,tp)
if not b1 and not b2 then return end
local op=0
......
--幻叙·消逝的梦
function c10200115.initial_effect(c)
-- 不能通召
c:EnableReviveLimit()
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_SINGLE)
e0:SetCode(EFFECT_SPSUMMON_CONDITION)
......
This diff is collapsed.
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