Commit 73f4b382 authored by Tachibana's avatar Tachibana

eme

parent d35e54a1
...@@ -37,6 +37,7 @@ function c9310039.initial_effect(c) ...@@ -37,6 +37,7 @@ function c9310039.initial_effect(c)
e4:SetRange(LOCATION_MZONE) e4:SetRange(LOCATION_MZONE)
e4:SetCountLimit(1,9311039) e4:SetCountLimit(1,9311039)
e4:SetHintTiming(0,TIMING_END_PHASE) e4:SetHintTiming(0,TIMING_END_PHASE)
e4:SetCondition(c9310039.con)
e4:SetTarget(c9310039.target) e4:SetTarget(c9310039.target)
e4:SetOperation(c9310039.operation) e4:SetOperation(c9310039.operation)
c:RegisterEffect(e4) c:RegisterEffect(e4)
...@@ -81,6 +82,13 @@ function c9310039.mgfilter(c,e,tp,sync) ...@@ -81,6 +82,13 @@ function c9310039.mgfilter(c,e,tp,sync)
and bit.band(c:GetReason(),0x80008)==0x80008 and c:GetReasonCard()==sync and bit.band(c:GetReason(),0x80008)==0x80008 and c:GetReasonCard()==sync
and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c9310039.con(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local kg=c:GetMaterial()
local ct=kg:GetCount()
local sumtype=c:GetSummonType()
return sumtype==SUMMON_TYPE_SYNCHRO and kg:FilterCount(aux.NecroValleyFilter(c9310039.mgfilter),nil,e,tp,c)==ct
end
function c9310039.target(e,tp,eg,ep,ev,re,r,rp,chk) function c9310039.target(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
local g=c:GetMaterial() local g=c:GetMaterial()
......
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