Commit a6032626 authored by 聖園ミカ's avatar 聖園ミカ 🐟

wdnmd

parent 02c18835
Pipeline #25937 passed with stages
in 22 minutes and 58 seconds
No preview for this file type
...@@ -101,11 +101,10 @@ function s.sumlimit(e,c,sump,sumtype,sumpos,targetp,se) ...@@ -101,11 +101,10 @@ function s.sumlimit(e,c,sump,sumtype,sumpos,targetp,se)
end end
function s.filter(c,e,tp) function s.filter(c,e,tp)
return c:IsFaceup() and c:IsType(TYPE_PENDULUM) and c:GetAttack()==0 and c:GetDefense()==1500 and c:IsRace(RACE_FAIRY) and c:IsAttribute(ATTRIBUTE_LIGHT) and c:GetLevel()==1 and c:IsCanBeSpecialSummoned(e,0,tp,true,false,POS_FACEUP) return c:IsFaceup() and c:IsType(TYPE_PENDULUM) and c:IsAbleToHand() and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0 and c:GetAttack()==0 and c:GetDefense()==1500 and c:IsRace(RACE_FAIRY) and c:IsAttribute(ATTRIBUTE_LIGHT) and c:GetLevel()==1 and c:IsCanBeSpecialSummoned(e,0,tp,true,false,POS_FACEUP)
end end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk) function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_EXTRA,0,1,nil,e,tp) if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_EXTRA,0,1,nil,e,tp) end
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,0,0) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,0,0)
end end
function s.prop(e,tp,eg,ep,ev,re,r,rp) function s.prop(e,tp,eg,ep,ev,re,r,rp)
...@@ -113,7 +112,7 @@ function s.prop(e,tp,eg,ep,ev,re,r,rp) ...@@ -113,7 +112,7 @@ function s.prop(e,tp,eg,ep,ev,re,r,rp)
if c:IsRelateToEffect(e) and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_EXTRA,0,1,nil,e,tp) then if c:IsRelateToEffect(e) and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_EXTRA,0,1,nil,e,tp) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp) local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp)
if g:GetCount()>0 and Duel.SendtoHand(g,nil,REASON_EFFECT)>0 and g:GetFirst():IsCanBeSpecialSummoned(e,0,tp,true,false,POS_FACEUP) then if g:GetCount()>0 and Duel.SendtoHand(g,nil,REASON_EFFECT)>0 and g:GetFirst():IsCanBeSpecialSummoned(e,0,tp,true,true,POS_FACEUP) then
Duel.SpecialSummon(g,nil,tp,tp,true,false,POS_FACEUP) Duel.SpecialSummon(g,nil,tp,tp,true,false,POS_FACEUP)
end end
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