Commit 8289b50a authored by mercury233's avatar mercury233

fix

parent 150c5515
...@@ -41,17 +41,17 @@ function c101004013.initial_effect(c) ...@@ -41,17 +41,17 @@ function c101004013.initial_effect(c)
e4:SetOperation(c101004013.thop) e4:SetOperation(c101004013.thop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c101004013.spfilter(c,e,tp)
return c:IsCode(94365540) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c101004013.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c101004013.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c101004013.filter,tp,LOCATION_DECK,0,1,nil,e,tp) end and Duel.IsExistingMatchingCard(c101004013.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end end
function c101004013.spfilter(c,e,tp)
return c:IsCode(94365540) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c101004013.spop(e,tp,eg,ep,ev,re,r,rp) function c101004013.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
local tc=Duel.GetFirstMatchingCard(c101004013.filter,tp,LOCATION_DECK,0,nil,e,tp) local tc=Duel.GetFirstMatchingCard(c101004013.spfilter,tp,LOCATION_DECK,0,nil,e,tp)
if tc then if tc then
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
end end
......
...@@ -40,7 +40,7 @@ function c101004037.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -40,7 +40,7 @@ function c101004037.spcon(e,tp,eg,ep,ev,re,r,rp)
end end
function c101004037.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c101004037.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local zone=0 local zone=0
local lg=eg:Filter(c48009503.cfilter,nil,tp) local lg=eg:Filter(c101004037.cfilter,nil,tp)
for tc in aux.Next(lg) do for tc in aux.Next(lg) do
zone=bit.bor(zone,tc:GetLinkedZone()) zone=bit.bor(zone,tc:GetLinkedZone())
end end
...@@ -51,7 +51,7 @@ end ...@@ -51,7 +51,7 @@ end
function c101004037.spop(e,tp,eg,ep,ev,re,r,rp) function c101004037.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local zone=0 local zone=0
local lg=eg:Filter(c48009503.cfilter,nil,tp) local lg=eg:Filter(c101004037.cfilter,nil,tp)
for tc in aux.Next(lg) do for tc in aux.Next(lg) do
zone=bit.bor(zone,tc:GetLinkedZone()) zone=bit.bor(zone,tc:GetLinkedZone())
end end
......
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