Commit 24d7409b authored by mercury233's avatar mercury233

fix

parent 837bfa8f
...@@ -29,9 +29,10 @@ function c100306030.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -29,9 +29,10 @@ function c100306030.target(e,tp,eg,ep,ev,re,r,rp,chk)
return matk>0 and Duel.CheckReleaseGroup(tp,c100306030.costfilter,1,nil,matk) return matk>0 and Duel.CheckReleaseGroup(tp,c100306030.costfilter,1,nil,matk)
end end
local g=Duel.SelectReleaseGroup(tp,c100306030.costfilter,1,1,nil,matk) local g=Duel.SelectReleaseGroup(tp,c100306030.costfilter,1,1,nil,matk)
e:SetLabel(g:GetFirst():GetAttack()) local atk=g:GetFirst():GetAttack()
e:SetLabel(atk)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
local ct=math.floor(g:GetFirst()/500) local ct=math.floor(atk/500)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,nil,ct,1-tp,LOCATION_DECK+LOCATION_HAND) Duel.SetOperationInfo(0,CATEGORY_DESTROY,nil,ct,1-tp,LOCATION_DECK+LOCATION_HAND)
end end
function c100306030.activate(e,tp,eg,ep,ev,re,r,rp) function c100306030.activate(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -33,7 +33,7 @@ function c100408029.spcost1(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -33,7 +33,7 @@ function c100408029.spcost1(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c100408029.spfilter1(c,e,tp,ec) function c100408029.spfilter1(c,e,tp,ec)
return c:IsSetCard(0x1215) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x1215) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
and Duel.GetLocationCountFromEx(tp,tp,ec,c,0x30)>0 and Duel.GetLocationCountFromEx(tp,tp,ec,c,0x60)>0
end end
function c100408029.sptg1(e,tp,eg,ep,ev,re,r,rp,chk) function c100408029.sptg1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c100408029.spfilter1,tp,LOCATION_EXTRA,0,1,nil,e,tp,e:GetHandler()) end if chk==0 then return Duel.IsExistingMatchingCard(c100408029.spfilter1,tp,LOCATION_EXTRA,0,1,nil,e,tp,e:GetHandler()) end
...@@ -43,7 +43,7 @@ function c100408029.spop1(e,tp,eg,ep,ev,re,r,rp) ...@@ -43,7 +43,7 @@ function c100408029.spop1(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c100408029.spfilter1,tp,LOCATION_EXTRA,0,1,1,nil,e,tp,e:GetHandler()) local g=Duel.SelectMatchingCard(tp,c100408029.spfilter1,tp,LOCATION_EXTRA,0,1,1,nil,e,tp,e:GetHandler())
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP,0x30) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP,0x60)
end end
end end
function c100408029.cfilter(c,tp,rp) function c100408029.cfilter(c,tp,rp)
......
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