Commit 9a567c66 authored by Tachibana's avatar Tachibana

eme

parent 920f68b6
Pipeline #7070 passed with stages
in 25 minutes and 27 seconds
......@@ -229,13 +229,15 @@ function aux.AddFusionProcMix(c,sub,insf,...)
end
function aux.AddFusionProcMixRep(c,sub,insf,f1,min,max,...)
local code=c:GetOriginalCode()
local val={...}
if not _G["c"..code] then _G["c"..code]={}
setmetatable(_G["c"..code],Card)
_G["c"..code].__index=_G["c"..code]
end
local ccodem=_G["c"..code]
local num=#val
if not c.fst then
ccodem.fst=min
ccodem.fst=min+num
end
return _tmp_1_3(c,sub,insf,f1,min,max,...)
end
......
......@@ -41,7 +41,7 @@ function cm.initial_effect(c)
end end)
.Return()).c("RegisterEffect",iFunc(c)
.e("SetCategory",CATEGORY_DESTROY)
.e("SetType",EFFECT_TYPE_TRIGGER_F)
.e("SetType",EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
.e("SetProperty",EFFECT_FLAG_CARD_TARGET)
.e("SetCode",EVENT_SPSUMMON_SUCCESS)
.e("SetRange",LOCATION_MZONE)
......@@ -49,7 +49,7 @@ function cm.initial_effect(c)
if not eg then return false end
local tc=eg:GetFirst()
if chkc then return chkc==tc end
if chk==0 then return ep~=tp and tc:IsFaceup() and tc:GetBaseAttack()>=2500 and tc:IsOnField() and tc:IsCanBeEffectTarget(e) end
if chk==0 then return tc:IsFaceup() and tc:GetBaseAttack()>=2500 and tc:IsOnField() and tc:IsCanBeEffectTarget(e) end
Duel.SetTargetCard(eg)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,tc,1,0,0) end)
.e("SetOperation",function(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -72,7 +72,8 @@ function cm.tgfilter(c,ty)
return c:IsFaceup() and c:IsType(ty)
end
function cm.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
local sg=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_ONFIELD,nil)
if chk==0 then return g:GetCount()>0 end
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(m,3))
local ac=Duel.SelectOption(tp,aux.Stringid(m,0),aux.Stringid(m,1),aux.Stringid(m,2))
local ty=TYPE_MONSTER
......
......@@ -84,7 +84,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,cm.spfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp)
local tc=g:GetFirst()
if tc then
Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP)
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
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