Commit 57852998 authored by POLYMER's avatar POLYMER

fix

parent 79b3a21f
...@@ -62,15 +62,14 @@ end ...@@ -62,15 +62,14 @@ end
function c65810015.cost2(e,tp,eg,ep,ev,re,r,rp,chk) function c65810015.cost2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToGraveAsCost() end if chk==0 then return e:GetHandler():IsAbleToGraveAsCost() and Duel.GetMZoneCount(tp,e:GetHandler())>0 end
Duel.SendtoGrave(e:GetHandler(),REASON_COST) Duel.SendtoGrave(e:GetHandler(),REASON_COST)
end end
function c65810015.spfilter(c,e,tp) function c65810015.spfilter(c,e,tp)
return c:IsSetCard(0xa31) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0xa31) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c65810015.target2(e,tp,eg,ep,ev,re,r,rp,chk) function c65810015.target2(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.IsExistingMatchingCard(c65810015.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp) end
and Duel.IsExistingMatchingCard(c65810015.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK)
end end
function c65810015.activate2(e,tp,eg,ep,ev,re,r,rp) function c65810015.activate2(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -86,15 +86,14 @@ end ...@@ -86,15 +86,14 @@ end
function c65810040.cost4(e,tp,eg,ep,ev,re,r,rp,chk) function c65810040.cost4(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToDeckOrExtraAsCost() end if chk==0 then return e:GetHandler():IsAbleToExtraAsCost() and Duel.GetMZoneCount(tp,e:GetHandler())>0 end
Duel.SendtoDeck(e:GetHandler(),nil,SEQ_DECKTOP,REASON_COST) Duel.SendtoDeck(e:GetHandler(),nil,SEQ_DECKTOP,REASON_COST)
end end
function c65810040.filter4(c,e,tp) function c65810040.filter4(c,e,tp)
return c:IsSetCard(0xa31) and c:IsType(TYPE_MONSTER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0xa31) and c:IsType(TYPE_MONSTER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c65810040.target4(e,tp,eg,ep,ev,re,r,rp,chk) function c65810040.target4(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.IsExistingMatchingCard(c65810040.filter4,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp) end
and Duel.IsExistingMatchingCard(c65810040.filter4,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK)
end end
function c65810040.activate4(e,tp,eg,ep,ev,re,r,rp) function c65810040.activate4(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -76,15 +76,14 @@ end ...@@ -76,15 +76,14 @@ end
function c65810045.cost4(e,tp,eg,ep,ev,re,r,rp,chk) function c65810045.cost4(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToDeckOrExtraAsCost() end if chk==0 then return e:GetHandler():IsAbleToExtraAsCost() and Duel.GetMZoneCount(tp,e:GetHandler())>0 end
Duel.SendtoDeck(e:GetHandler(),nil,SEQ_DECKTOP,REASON_COST) Duel.SendtoDeck(e:GetHandler(),nil,SEQ_DECKTOP,REASON_COST)
end end
function c65810045.filter4(c,e,tp) function c65810045.filter4(c,e,tp)
return c:IsRace(RACE_INSECT) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and aux.NecroValleyFilter() return c:IsRace(RACE_INSECT) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and aux.NecroValleyFilter()
end end
function c65810045.target4(e,tp,eg,ep,ev,re,r,rp,chk) function c65810045.target4(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.IsExistingMatchingCard(c65810045.filter4,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil,e,tp) end
and Duel.IsExistingMatchingCard(c65810045.filter4,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_GRAVE) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_GRAVE)
end end
function c65810045.activate4(e,tp,eg,ep,ev,re,r,rp) function c65810045.activate4(e,tp,eg,ep,ev,re,r,rp)
...@@ -95,4 +94,3 @@ function c65810045.activate4(e,tp,eg,ep,ev,re,r,rp) ...@@ -95,4 +94,3 @@ function c65810045.activate4(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end end
end end
\ No newline at end of file
...@@ -26,7 +26,7 @@ end ...@@ -26,7 +26,7 @@ end
function c65810070.filter(c) function c65810070.filter(c)
return c:IsRace(RACE_INSECT) and c:IsType(TYPE_MONSTER) and Duel.IsPlayerCanRelease(c:GetControler()) return c:IsRace(RACE_INSECT) and c:IsType(TYPE_MONSTER) and Duel.IsPlayerCanRelease(c:GetControler()) and Duel.GetMZoneCount(tp,c,tp)>0
end end
function c65810070.filter1(c,e,tp) function c65810070.filter1(c,e,tp)
return c:IsCode(65810055) return c:IsCode(65810055)
......
...@@ -43,12 +43,11 @@ end ...@@ -43,12 +43,11 @@ end
function c65810105.filter(c) function c65810105.filter(c)
return c:IsRace(RACE_INSECT) return c:IsRace(RACE_INSECT) and Duel.GetMZoneCount(tp,c,tp)>0
end end
function c65810105.spcon(e,c) function c65810105.spcon(e,c)
if c==nil then return true end if c==nil then return true end
return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 return Duel.IsExistingMatchingCard(c65810105.filter,c:GetControler(),LOCATION_HAND+LOCATION_MZONE+LOCATION_GRAVE,0,1,nil)
and Duel.IsExistingMatchingCard(c65810105.filter,c:GetControler(),LOCATION_HAND+LOCATION_MZONE+LOCATION_GRAVE,0,1,nil)
end end
function c65810105.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c) function c65810105.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
local g=Duel.GetMatchingGroup(c65810105.filter,tp,LOCATION_HAND+LOCATION_MZONE+LOCATION_GRAVE,0,nil,tp,tp) local g=Duel.GetMatchingGroup(c65810105.filter,tp,LOCATION_HAND+LOCATION_MZONE+LOCATION_GRAVE,0,nil,tp,tp)
......
...@@ -42,7 +42,7 @@ function c98930408.initial_effect(c) ...@@ -42,7 +42,7 @@ function c98930408.initial_effect(c)
end end
function c98930408.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c98930408.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local ft=Duel.GetLocationCount(tp,LOCATION_SZONE) local ft=Duel.GetLocationCount(tp,LOCATION_SZONE)
if chk==0 then return ft>0 end if chk==0 then return ft>0 or e:GetHandler():IsLocation(LOCATION_SZONE) end
if e:GetHandler():IsLocation(LOCATION_DECK) then if e:GetHandler():IsLocation(LOCATION_DECK) then
Duel.MoveToField(e:GetHandler(),tp,tp,LOCATION_SZONE,POS_FACEUP,true) Duel.MoveToField(e:GetHandler(),tp,tp,LOCATION_SZONE,POS_FACEUP,true)
local tc=Duel.GetFieldGroup(tp,LOCATION_FZONE,0):GetFirst() local tc=Duel.GetFieldGroup(tp,LOCATION_FZONE,0):GetFirst()
......
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