Commit 631e5329 authored by 伊蕾娜's avatar 伊蕾娜

c74562040.lua

parent 2c63729d
Pipeline #32902 passed with stage
in 10 seconds
......@@ -13,19 +13,19 @@ function cCardno.initial_effect(c)
c:RegisterEffect(e1)
end
--Activate
function cCardno.filter1(c)
return ((c:IsType(TYPE_MONSTER) and c:IsCanBeXyzMaterial(nil)) or not c:IsType(TYPE_MONSTER))
function cCardno.filter1(c,e)
return ((c:IsType(TYPE_MONSTER) and c:IsCanBeXyzMaterial(nil)) or not c:IsType(TYPE_MONSTER)) and not c:IsImmuneToEffect(e)
end
function cCardno.filter2(c,e,tp)
return c:IsType(TYPE_XYZ) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,tp,false,false) and c:IsSetCard(0x226)
end
function cCardno.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cCardno.filter1,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,e:GetHandler()) and Duel.IsExistingMatchingCard(cCardno.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp) end
if chk==0 then return Duel.IsExistingMatchingCard(cCardno.filter1,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,e:GetHandler(),e) and Duel.IsExistingMatchingCard(cCardno.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0)
end
function cCardno.activate(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local g=Duel.GetMatchingGroup(cCardno.filter1,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,c)
local g=Duel.GetMatchingGroup(cCardno.filter1,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,c,e)
if g:GetCount()>0 and Duel.IsExistingMatchingCard(cCardno.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp) then
local exg=Duel.SelectMatchingCard(tp,cCardno.filter2,tp,LOCATION_EXTRA,0,1,1,nil,e,tp)
local exc=exg:GetFirst()
......
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