Commit fe4e761c authored by Tachibana's avatar Tachibana

watele

parent 2299854f
Pipeline #6733 failed with stages
in 28 minutes and 45 seconds
...@@ -180,6 +180,6 @@ function cm.efop4(e,tp,eg,ep,ev,re,r,rp) ...@@ -180,6 +180,6 @@ function cm.efop4(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
function cm.retop(e,tp,eg,ep,ev,re,r,rp) function cm.retop(e,tp,eg,ep,ev,re,r,rp)
local lp=Duel.GetLP(tp) local lp=Duel.GetLP(1-tp)
Duel.SetLP(1-tp,lp-2000) Duel.SetLP(1-tp,lp-2000)
end end
\ No newline at end of file
...@@ -19,16 +19,14 @@ function c66915072.initial_effect(c) ...@@ -19,16 +19,14 @@ function c66915072.initial_effect(c)
Duel.SendtoGrave(g,REASON_COST) Duel.SendtoGrave(g,REASON_COST)
end) end)
e1:SetTarget(function(e,tp,eg,ep,ev,re,r,rp,chk) e1:SetTarget(function(e,tp,eg,ep,ev,re,r,rp,chk)
local ft=Duel.GetLocationCountFromEx(tp,tp,nil,c) if chk==0 then return Duel.IsExistingMatchingCard(c66915072.sp,tp,LOCATION_EXTRA,0,1,nil,e,tp) end
if chk==0 then return Duel.IsExistingMatchingCard(c66915072.sp,tp,LOCATION_EXTRA,0,1,nil,e,tp,ft) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0)
end) end)
e1:SetOperation(function(e,tp,eg,ep,ev,re,r,rp) e1:SetOperation(function(e,tp,eg,ep,ev,re,r,rp)
local ft=Duel.GetLocationCountFromEx(tp,tp,nil,c) if Duel.IsExistingMatchingCard(function(c)return c:IsCode(66915001) and c:IsFaceup()end,tp,LOCATION_SZONE,0,1,nil)
if Duel.IsExistingMatchingCard(function(c)return c:IsCode(66915001) and c:IsFaceup()end,tp,LOCATION_SZONE,0,1,nil) and ft>1
and Duel.SelectYesNo(tp,aux.Stringid(66915072,0)) then and Duel.SelectYesNo(tp,aux.Stringid(66915072,0)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c66915072.sp,tp,LOCATION_EXTRA,0,2,2,nil,e,tp,ft) local g=Duel.SelectMatchingCard(tp,c66915072.sp,tp,LOCATION_EXTRA,0,2,2,nil,e,tp)
if g:GetCount()==2 then if g:GetCount()==2 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end end
...@@ -51,6 +49,6 @@ function c66915072.initial_effect(c) ...@@ -51,6 +49,6 @@ function c66915072.initial_effect(c)
end) end)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c66915072.sp(c,e,tp,ft) function c66915072.sp(c,e,tp)
return c:IsCode(66915070) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and ft>0 return c:IsCode(66915070) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0
end end
\ No newline at end of file
...@@ -310,7 +310,7 @@ function cm.SynMixCheckGoal(tp,sg,minc,ct,syncard,sg1,smat,gc,mgchk) ...@@ -310,7 +310,7 @@ function cm.SynMixCheckGoal(tp,sg,minc,ct,syncard,sg1,smat,gc,mgchk)
return false return false
end end
end end
if (g:FilterCount(Card.IsSynchroType,nil,TYPE_TUNER)==0 and g:FilterCount(Card.IsLocation,nil,LOCATION_SZONE)==0) or g:FilterCount(cm.ssfu,nil,sync)==0 then if (g:FilterCount(Card.IsSynchroType,nil,TYPE_TUNER)==0 and g:FilterCount(Card.IsLocation,nil,LOCATION_SZONE)==0) or g:FilterCount(cm.ffsu,nil,sync)==0 then
return false return false
end end
local le,lf,lloc,lmin,lmax=c:GetTunerLimit() local le,lf,lloc,lmin,lmax=c:GetTunerLimit()
......
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