Commit 23386863 authored by nekrozar's avatar nekrozar

fix

parent 2788e532
...@@ -16,12 +16,11 @@ function c32603633.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -16,12 +16,11 @@ function c32603633.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c32603633.filter(c,e,tp) function c32603633.filter(c,e,tp)
return c:IsSetCard(0x3d) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x3d) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
and not Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_MZONE,0,1,nil,c:GetCode()) and not Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,c:GetCode())
end end
function c32603633.tg(e,tp,eg,ep,ev,re,r,rp,chk) function c32603633.tg(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(c32603633.filter,tp,LOCATION_GRAVE,0,1,nil,e,tp) and Duel.IsExistingMatchingCard(c32603633.filter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE)
end end
function c32603633.op(e,tp,eg,ep,ev,re,r,rp) function c32603633.op(e,tp,eg,ep,ev,re,r,rp)
...@@ -31,7 +30,7 @@ function c32603633.op(e,tp,eg,ep,ev,re,r,rp) ...@@ -31,7 +30,7 @@ function c32603633.op(e,tp,eg,ep,ev,re,r,rp)
while g:GetCount()>0 and ft>0 do while g:GetCount()>0 and ft>0 do
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sg=g:Select(tp,1,1,nil) local sg=g:Select(tp,1,1,nil)
Duel.SpecialSummonStep(sg:GetFirst(), 0, tp, tp, false, false, POS_FACEUP) Duel.SpecialSummonStep(sg:GetFirst(),0,tp,tp,false,false,POS_FACEUP)
ft=ft-1 ft=ft-1
g:Remove(Card.IsCode,nil,sg:GetFirst():GetCode()) g:Remove(Card.IsCode,nil,sg:GetFirst():GetCode())
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