Commit f53474d4 authored by mercury233's avatar mercury233

fix

parent ad2289ac
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
-- --
--Script by Trishula9 --Script by Trishula9
function c100285003.initial_effect(c) function c100285003.initial_effect(c)
c:SetUniqueOnField(1,0,100343041) c:SetUniqueOnField(1,0,100285003)
--link summon --link summon
c:EnableReviveLimit() c:EnableReviveLimit()
aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsLinkRace,RACE_ZOMBIE),2) aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsLinkRace,RACE_ZOMBIE),2)
......
...@@ -48,13 +48,16 @@ end ...@@ -48,13 +48,16 @@ end
function c100426003.ovtg(e,tp,eg,ep,ev,re,r,rp,chk) function c100426003.ovtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c100426003.ovfilter,tp,LOCATION_EXTRA,0,1,nil,e:GetHandler()) end if chk==0 then return Duel.IsExistingMatchingCard(c100426003.ovfilter,tp,LOCATION_EXTRA,0,1,nil,e:GetHandler()) end
end end
function c100426003.ovfilter2(c)
return c:IsFaceup() and c:IsCanOverlay()
end
function c100426003.ovop(e,tp,eg,ep,ev,re,r,rp) function c100426003.ovop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(100426003,0)) Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(100426003,0))
local mg=Duel.SelectMatchingCard(tp,c100426003.ovfilter,tp,LOCATION_EXTRA,0,1,1,nil,c) local mg=Duel.SelectMatchingCard(tp,c100426003.ovfilter,tp,LOCATION_EXTRA,0,1,1,nil,c)
Duel.Overlay(c,mg) Duel.Overlay(c,mg)
local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,c) local g=Duel.GetMatchingGroup(c100426003.ovfilter2,tp,LOCATION_MZONE,LOCATION_MZONE,c)
if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(100426003,1)) then if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(100426003,1)) then
Duel.BreakEffect() Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(100426003,0)) Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(100426003,0))
......
...@@ -53,7 +53,7 @@ function c100426005.cpcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -53,7 +53,7 @@ function c100426005.cpcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
end end
function c100426005.cpfilter(c) function c100426005.cpfilter(c)
return c:GetType()==TYPE_SPELL and (c:IsSetCard(0x277) or c:IsCode(57734012)) and c:IsAbleToGraveAsCost() return c:GetType()==TYPE_SPELL and c:IsSetCard(0x277) and c:IsAbleToGraveAsCost()
and c:CheckActivateEffect(true,true,false)~=nil and c:CheckActivateEffect(true,true,false)~=nil
end end
function c100426005.cptg(e,tp,eg,ep,ev,re,r,rp,chk) function c100426005.cptg(e,tp,eg,ep,ev,re,r,rp,chk)
...@@ -117,6 +117,7 @@ function c100426005.xyzop(e,tp,eg,ep,ev,re,r,rp) ...@@ -117,6 +117,7 @@ function c100426005.xyzop(e,tp,eg,ep,ev,re,r,rp)
local mg=Duel.GetMatchingGroup(c100426005.filter1,tp,LOCATION_DECK,0,nil,e,tp) local mg=Duel.GetMatchingGroup(c100426005.filter1,tp,LOCATION_DECK,0,nil,e,tp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=mg:SelectSubGroup(tp,c100426005.fselect,false,1,ft,tp) local g=mg:SelectSubGroup(tp,c100426005.fselect,false,1,ft,tp)
if not g then return end
local tc=g:GetFirst() local tc=g:GetFirst()
while tc do while tc do
Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP)
......
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