Commit eef9246c authored by mercury233's avatar mercury233

fix

parent 9fa00fb9
......@@ -20,21 +20,14 @@ function c99330325.initial_effect(c)
e2:SetOperation(c99330325.thop)
c:RegisterEffect(e2)
end
function c99330325.filter1(c,e,tp)
return c:IsSetCard(0xd3) and c:IsType(TYPE_MONSTER) and Duel.IsExistingMatchingCard(c99330325.filter2,tp,LOCATION_DECK,0,1,nil,e,tp,c:GetCode())
end
function c99330325.filter2(c,e,tp,cd)
return c:IsSetCard(0xd3) and c:IsType(TYPE_MONSTER) and not c:IsCode(cd)
end
function c99330325.filter3(c,e,tp)
if c:IsSetCard(0xd3) and c:IsType(TYPE_MONSTER) then
if not c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_ATTACK) then
return false
else return Duel.IsExistingMatchingCard(c99330325.filter2,tp,LOCATION_DECK,0,1,nil,e,tp,c:GetCode()) end
else return false end
end
function c99330325.filter4(c,e,tp,cd)
function c99330325.filter2(c,e,tp,cd)
if c:IsSetCard(0xd3) and c:IsType(TYPE_MONSTER) and not c:IsCode(cd) then
if not c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_ATTACK,1-tp) then
return false
......@@ -54,15 +47,15 @@ end
function c99330325.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(Card.IsDestructable,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
if g:GetCount()==0 then return end
Duel.Destroy(g,REASON_EFFECT)
if Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.GetLocationCount(1-tp,LOCATION_MZONE)>0 then
if Duel.Destroy(g,REASON_EFFECT)~=0
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.GetLocationCount(1-tp,LOCATION_MZONE)>0 then
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(99330325,0))
local g1=Duel.SelectMatchingCard(tp,c99330325.filter3,tp,LOCATION_DECK,0,1,1,nil,e,tp)
local g1=Duel.SelectMatchingCard(tp,c99330325.filter1,tp,LOCATION_DECK,0,1,1,nil,e,tp)
if g1:GetCount()==0 then return end
local tc1=g1:GetFirst()
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(99330325,1))
local g2=Duel.SelectMatchingCard(tp,c99330325.filter4,tp,LOCATION_DECK,0,1,1,nil,e,tp,tc1:GetCode())
local g2=Duel.SelectMatchingCard(tp,c99330325.filter2,tp,LOCATION_DECK,0,1,1,nil,e,tp,tc1:GetCode())
if g2:GetCount()==0 then return end
local tc2=g2:GetFirst()
Duel.SpecialSummonStep(tc1,0,tp,tp,false,false,POS_FACEUP_ATTACK)
......
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