Commit f63abe29 authored by Nemo Ma's avatar Nemo Ma

lst

parent 9444a8a9
......@@ -430,6 +430,15 @@
30002065 0
30010000 0
30012000 0
#210926
14000321 0
14000322 0
14000323 0
14000329 0
14090042 0
31400001 0
22060180 1
65010020 1
#210919
33403520 0
33403521 0
......@@ -603,7 +612,6 @@
14000212 1
14000351 1
14000373 1
14090042 1
33710901 1
33701435 1
130000756 0
......@@ -737,7 +745,6 @@
79034051 1
82221061 1
83000087 1
65010020 2
65010099 2
82208105 2
#210411
......
......@@ -4,7 +4,8 @@ cm.name="无名的爱丽丝"
function cm.initial_effect(c)
--activate
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetRange(LOCATION_HAND)
e1:SetCost(cm.accost)
e1:SetTarget(cm.actg)
......@@ -17,6 +18,7 @@ function cm.initial_effect(c)
e2:SetCode(EVENT_FREE_CHAIN)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL)
e2:SetRange(LOCATION_GRAVE)
e2:SetCountLimit(1,m)
e2:SetCondition(cm.condition)
e2:SetTarget(cm.target)
e2:SetOperation(cm.operation)
......
......@@ -23,12 +23,6 @@ function cm.initial_effect(c)
e3:SetOperation(cm.spop)
c:RegisterEffect(e3)
end
function cm.filter0(c)
return c:IsAbleToRemove()
end
function cm.filter1(c,e)
return c:IsAbleToRemove() and not c:IsImmuneToEffect(e)
end
function cm.filter2(c,e,tp,m,f,chkf)
return c:IsType(TYPE_FUSION) and c:IsSetCard(0x341) and (not f or f(c))
and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_FUSION,tp,false,false) and c:CheckFusionMaterial(m,nil,chkf)
......@@ -39,9 +33,7 @@ end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then
local chkf=tp
local mg1=Duel.GetFusionMaterial(tp):Filter(cm.filter0,nil)
local mg2=Duel.GetMatchingGroup(cm.filter3,tp,LOCATION_GRAVE,0,nil)
mg1:Merge(mg2)
local mg1=Duel.GetMatchingGroup(cm.filter3,tp,LOCATION_GRAVE,0,nil)
local res=Duel.IsExistingMatchingCard(cm.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg1,nil,chkf)
if not res then
local ce=Duel.GetChainMaterial(tp)
......@@ -55,13 +47,11 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
return res
end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,tp,LOCATION_ONFIELD+LOCATION_GRAVE)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,tp,LOCATION_GRAVE)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local chkf=tp
local mg1=Duel.GetFusionMaterial(tp):Filter(cm.filter1,nil,e)
local mg2=Duel.GetMatchingGroup(cm.filter3,tp,LOCATION_GRAVE,0,nil)
mg1:Merge(mg2)
local mg1=Duel.GetMatchingGroup(cm.filter3,tp,LOCATION_GRAVE,0,nil)
local sg1=Duel.GetMatchingGroup(cm.filter2,tp,LOCATION_EXTRA,0,nil,e,tp,mg1,nil,chkf)
local mg3=nil
local sg2=nil
......
......@@ -49,13 +49,14 @@ function c82567794.defop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c82567794.cfilter(c,g)
return g:IsContains(c) and c:IsSetCard(0x825) and c:IsFaceup()
return c:IsSetCard(0x825) and c:IsFaceup() and c:IsAbleToHandAsCost()
end
function c82567794.descost2(e,tp,eg,ep,ev,re,r,rp,chk)
local lg=e:GetHandler():GetLinkedGroup()
if chk==0 then return Duel.CheckReleaseGroup(tp,c82567794.cfilter,1,nil,lg) end
local g=Duel.SelectReleaseGroup(tp,c82567794.cfilter,1,1,nil,lg)
Duel.SendtoHand(g,tp,1)
if chk==0 then return lg:Filter(c82567794.cfilter,nil):GetCount()>0 end
local thlg=lg:Filter(c82567794.cfilter,nil)
local g=thlg:Select(tp,1,1,nil)
Duel.SendtoHand(g,nil,1)
end
function c82567794.destg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_ONFIELD) and chkc:IsControler(1-tp) end
......
......@@ -55,7 +55,7 @@ function c82567814.sprcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
local g=Duel.GetMatchingGroup(c82567814.sprfilter,tp,LOCATION_MZONE,0,nil)
return g:GetCount()>2
return g:GetCount()>=2
end
function c82567814.sprop(e,tp,eg,ep,ev,re,r,rp,c)
local mg=Duel.GetMatchingGroup(c82567814.sprfilter,tp,LOCATION_MZONE,0,nil)
......
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