Commit 2083acb7 authored by POLYMER's avatar POLYMER

fix

parent c556e56e
...@@ -51,7 +51,7 @@ function c60151908.initial_effect(c) ...@@ -51,7 +51,7 @@ function c60151908.initial_effect(c)
--special summon --special summon
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_SPECIAL_SUMMON) e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetCode(EFFECT_TYPE_IGNITION) e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_GRAVE) e2:SetRange(LOCATION_GRAVE)
e2:SetCondition(c60151908.e2con) e2:SetCondition(c60151908.e2con)
e2:SetCost(aux.bfgcost) e2:SetCost(aux.bfgcost)
...@@ -132,18 +132,18 @@ end ...@@ -132,18 +132,18 @@ end
function c60151908.e2con(e,tp,eg,ep,ev,re,r,rp) function c60151908.e2con(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==0 return Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==0
end end
function c60151908.e2tgfilter(c,e,tp) function c60151908.e2tgf(c,e,tp)
return c:IsCode(60151901) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsCode(60151901) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c60151908.e2tg(e,tp,eg,ep,ev,re,r,rp,chk) function c60151908.e2tg(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(c60151908.e2tgfilter,tp,LOCATION_DECK,0,1,nil,e,tp) end and Duel.IsExistingMatchingCard(c60151908.e2tgf,tp,LOCATION_DECK,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end end
function c60151908.e2op(e,tp,eg,ep,ev,re,r,rp) function c60151908.e2op(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c60151908.e2tgfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp) local g=Duel.SelectMatchingCard(tp,c60151908.e2tgf,tp,LOCATION_DECK,0,1,1,nil,e,tp)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end end
......
...@@ -60,7 +60,7 @@ function c60151909.initial_effect(c) ...@@ -60,7 +60,7 @@ function c60151909.initial_effect(c)
--special summon --special summon
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_SPECIAL_SUMMON) e2:SetCategory(CATEGORY_SPECIAL_SUMMON)
e2:SetCode(EFFECT_TYPE_IGNITION) e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_GRAVE) e2:SetRange(LOCATION_GRAVE)
e2:SetCondition(c60151909.e2con) e2:SetCondition(c60151909.e2con)
e2:SetCost(aux.bfgcost) e2:SetCost(aux.bfgcost)
......
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