Commit ca323515 authored by GuGu's avatar GuGu

Update c86379692.lua

parent 7f8fc2c2
Pipeline #40224 passed with stage
in 42 seconds
......@@ -93,18 +93,23 @@ function c86379692.op1_2(e,tp,eg,ep,ev,re,r,rp)
end
--
function c86379692.spfilter(c,e,tp,lc)
return c:IsControler(tp) and c:IsLocation(LOCATION_GRAVE)
return c:IsControler(tp) and c:IsLocation(LOCATION_GRAVE) and c:IsSetCard(0x225a,0xc225)
and bit.band(c:GetReason(),REASON_LINK)~=0 and bit.band(c:GetReason(),REASON_MATERIAL)~=0 and c:GetReasonCard()==lc
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and not c:IsHasEffect(EFFECT_NECRO_VALLEY)
end
function c86379692.spfilter2(c,e,tp,lc)
return c:IsControler(tp) and c:IsLocation(LOCATION_GRAVE)
and bit.band(c:GetReason(),REASON_LINK)~=0 and bit.band(c:GetReason(),REASON_MATERIAL)~=0 and c:GetReasonCard()==lc
end
function c86379692.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
local mg=c:GetMaterial()
local ct=mg:GetCount()
local ct=mg:FilterCount(c86379692.spfilter,nil,e,tp,c)
if chk==0 then return c:GetSummonType()==SUMMON_TYPE_LINK
and ct>0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>=ct
and mg:FilterCount(c86379692.spfilter,nil,e,tp,c)==ct end
Duel.SetTargetCard(mg)
and mg:FilterCount(c86379692.spfilter2,nil,e,tp,c)==ct end
Duel.SetTargetCard(mg:Filter(c86379692.spfilter,nil,e,tp,c))
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,mg,ct,0,0)
end
function c86379692.spop(e,tp,eg,ep,ev,re,r,rp)
......
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